Product Scraper
Python parser to scrape data from internet
https://github.com/piotrr79/productscraper
from scraper import ProductScraper
class Command:
""" Command line command execution """
def __init__(self):
pass
def runCommand(self):
""" Run command """
return ProductScraper.getContent(self)
""" Command line call """
x = Command()
output = x.runCommand()
print(output)
Python parser to scrape products info from websites. To install and run follow GitHub Readme file from above link.
For running additional software like Firefox browser and Geckodriver must be installed. After setting up to be executed from terminal with:
python3 command.py
.
Unit tests included, can be triggered with
python3 -m unittest tests.ProductScraperTest