vendredi 17 mai 2019

Get current active browser content into requests.get()

I am having trouble with a code, which should read content from a website. I found a site (https://docs.python-guide.org/scenarios/scrape/) which helped me understand that the module "request" would be my ideal solution, however I am having the problem that I need to get the current active browser content into this code page = requests.get(url) because, reloading the page would change the content.

I am using following code to open my browser:

url = 'www.hereismyurl'
browser = ffox_open(url,current_path,ffox_profile)

then I interact a bit with the website and would love to use this page = requests.get(url)

Could you please help me?




Aucun commentaire:

Enregistrer un commentaire