Metadata-Version: 2.1
Name: superscraper
Version: 0.2.0
Summary: the friendliest scraper around
Author: MBeebe
Author-email: grow.food.everywhere@gmail.com
Requires-Python: >=3.8,<4.0
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Requires-Dist: beautifulsoup4 (>=4.11.1,<5.0.0)
Requires-Dist: selenium (>=4.2.0,<5.0.0)
Requires-Dist: webdriver-manager (>=3.7.0,<4.0.0)
Description-Content-Type: text/markdown

# Super Scraper
Scraping couldn't get much easier.  

**Super Scraper** is built with ease in mind - for those hard to scrape places. It drives with Selenium and parses with BeautifulSoup4. I've provided some convenience methods to make common actions even easier for you.

# Example

```
from superscraper import SuperScraper, By

scraper = SuperScraper(show_process=True)
scraper.search('https://www.google.com')
scraper.fill_in(By.NAME, 'q', 'hello world')
scraper.click(By.NAME, 'btnK')

search_results = scraper.driver.find_elements(By.CLASS_NAME, 'g')
for result in search_results:

    title = scraper.attempt(result.find_element, By.TAG_NAME, 'h3')
    if title:
        print(title.text)
        a = result.find_element(By.TAG_NAME, 'a')
        scraper.open_new_tab(By.LINK_TEXT, a.text)
        scraper.close_current_tab(switch_to_tab=-1)
```
