0

Just wondering is there any way to scrape an already opened google chrome page?

this is my scraper

import bs4
import requests
url = input()

page = requests.get(url,verify=False, proxies=proxies)

soup = bs4.BeautifulSoup(page.content, "html.parser")

results = soup.find_all('td', string = input())

is_not_empty = bool(results)
print (is_not_empty)

The problem is i need to login to check for some specefic tr element and when im giving url like the code above the web page my scraper goes to its just another page so im wondering is there any way to do the scraping whitout giving url on a already opened link on google chrome?

Sahand
  • 15
  • 5
  • 1
    You could use [selenium](https://www.selenium.dev/). [Here](https://stackoverflow.com/questions/8344776/can-selenium-interact-with-an-existing-browser-session) is a related question – gionni Dec 06 '21 at 10:53

0 Answers0