Skip to main content

the friendliest scraper around

Project description

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, ScraperOptions, Browser, By

options = ScraperOptions()
options.show_process = True 
options.incognito = True 

scraper = SuperScraper(
    browser=Browser.CHROME,
    options=options)

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[:3]:

    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)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

superscraper-0.3.10.tar.gz (3.6 kB view details)

Uploaded Source

Built Distribution

superscraper-0.3.10-py3-none-any.whl (4.3 kB view details)

Uploaded Python 3

File details

Details for the file superscraper-0.3.10.tar.gz.

File metadata

  • Download URL: superscraper-0.3.10.tar.gz
  • Upload date:
  • Size: 3.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.5.1 CPython/3.11.1 Windows/10

File hashes

Hashes for superscraper-0.3.10.tar.gz
Algorithm Hash digest
SHA256 4574fc79cff1ad3efe51ac4bf90ee1f08ef289f61042a81c04d2dcecefc81cc8
MD5 0946f8b7f0c5dd411d4dd31af176bfe9
BLAKE2b-256 3e7c4584d0b1b27974a4d82292581e64a5c1e552ac333eedd53cb820a0dcb4f2

See more details on using hashes here.

File details

Details for the file superscraper-0.3.10-py3-none-any.whl.

File metadata

  • Download URL: superscraper-0.3.10-py3-none-any.whl
  • Upload date:
  • Size: 4.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.5.1 CPython/3.11.1 Windows/10

File hashes

Hashes for superscraper-0.3.10-py3-none-any.whl
Algorithm Hash digest
SHA256 b65d61ed3bb327ccd6d5e693066ddaa847f4edeb52c5346b71e4912a4f5bec4d
MD5 923862ad0d35fd6d4d7ed850f4400e20
BLAKE2b-256 f1ba248f4696acb22040a0cc651c6c4d68dbec56842d8332f1e08de3cbf83be3

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page