You probably need to change the url if you are web scraping. When you initialize the WebSpell class, you provide a URL. Ghost (optional): A boolean for making the chromedriver headless. Options include chrome | undetected_chrome | firefox If omitted, the class will automatically download one into your cache.īrowser (optional): A string to choose which browser you want to use. Currently Chrome is the only supported browser.ĭriver_path (optional): A filepath for a chromedriver. Choosing static will use the requests module while dynamic will use a selenium webdriver. The WebSpell class returns either a StaticSpell or DynamicSpell depending on which method you select: static or dynamic. Pip install webmage Basic Usage Import WebSpellįrom webmage import WebSpell Initializing the WebSpell class A wrapper around requests, BeautifulSoup, and Selenium (Chrome) to facilitate web scraping.
0 Comments
Leave a Reply. |