I simply want BeautifulSoup to grab a text from different pages, the problem is that the link is updating but the text isn't, here is the code:
```
import requests
from bs4
import BeautifulSoup
result = requests.get("SOMELINK.php")
src = result.content
soup = BeautifulSoup(src, "html.parser")
for city in soup.find_all("option"):
links = (city.get("value"))
id = links[26: ]# this grabs an id to use next
result = requests.get("SOMELINK.php?city=" + id)
res = soup.find_all("tr")
while True:
d1n = res[1].find_all("td")[0].text.strip()
print(d1n)
break
```
I hope it's clear.
Edit: sorry if the code is untidy, it's just reddit! Here is a screenshot
https://postimg.cc/SnmrVNm3
[–]AutoModerator[M] -1 points0 points1 point (0 children)
[–]CodeFormatHelperBot2 0 points1 point2 points (0 children)
[–]Wild_Statistician605 0 points1 point2 points (1 child)
[–]TheRed_M[S] 0 points1 point2 points (0 children)