The starting URL of a web application is "https://ts15.travian.co.il". When clicking on an attribute in the game it takes you to "https://ts15.travian.co.il/build.php?id=35", but when i try to assign the URL to the code and open it it goes nack to the 'sign in page'.
I've already tried clicking on the attribute but it only worked for me with selenium and i don't want to open an actual browser. When i sign-in to the game myself i can enter the URL of the attribute and it will take me there but with the code it doesn;t work
import requests
from bs4 import BeautifulSoup
login_data = dict(name='SomeUserName', password='SomePassWord')
URL = 'https://ts15.travian.co.il'
travian_logIn = requests.post(URL, data=login_data, headers=myUserAgent)
URL_attribute = 'https://ts15.travian.co.il/build.php?id=35'
source_of_builds = requests.get(URL_attribute, headers=myUserAgent)
soup02 = BeautifulSoup(source_of_builds.content, 'lxml')
print(soup02)
When printing the content with BeautifulSoup i got the same content as the "Log-In" URL
source = requests.get(URL, headers=myUserAgent)
print(BeautifulSoup(source.content, 'lxml'))
=======
source_of_builds = requests.get(URL_attribute, headers=myUserAgent)
print(BeautifulSoup(source_of_builds.content, 'lxml'))