Tools to make webscraping easier
- in your terminal, type:
pip install webscraping_tools
- Make sure bs4 and selenium have been pip installed
- In a python window, type:
from webscraping_tools import webscrapingTools, ezScrape
ezScrape is a quick and easy way to scrape any table or list from a website. All you need is the website URL and a path to the webdriver of your choice. ezScrape returns a nested list containing your scraped data
To scrape a table from any website:
table_data = ezScrape.table_scrape("WEBSITE_URL_TO_BE_SCRAPED", "PATH_TO_SELENIUM_DRIVER")
print(table_data)
- Done.
To scrape a list from any website:
list_data = ezScrape.list_scrape("WEBSITE_URL_TO_BE_SCRAPED", "PATH_TO_SELENIUM_DRIVER")
print(list_data)
- Done.
webscrapingTools is a powerful way to gather lists, tables, and general content from a website. webScrapingTools requires a basic understanding of html to be utilized but can be customized to handle more complex tasks than ezScrape.
To use, take a look at webscrapingtoolsexample.py for a basic understanding.