diff --git a/README.md b/README.md index 2e2ae1e..e214d86 100644 --- a/README.md +++ b/README.md @@ -4,8 +4,10 @@ Get the price from LCSC.com for some items πŸπŸ•ΈοΈ The LCSC-Python-WebScraper is a program that allows you to get the prices of items from LCSC.com. By using web scraping techniques with Python, you can easily gather the information you need for your purchasing decisions. With this program, you can save time and effort by avoiding the need to manually search for prices. + ## Requirements - Python3 + ## Installation ```pip install -r req.txt``` diff --git a/config.py b/config.py index 6450b05..264be96 100644 --- a/config.py +++ b/config.py @@ -1,2 +1,2 @@ fileLocation = "output/" -delayBetweenPriceCheck = 120 \ No newline at end of file +delayBetweenPriceCheck = 120 diff --git a/main.py b/main.py index bb77f55..a724263 100644 --- a/main.py +++ b/main.py @@ -51,4 +51,5 @@ def autoscrapper(): lcscscraper(i["url"], i["span"], i["fronttext"]) time.sleep(config.delayBetweenPriceCheck) -autoscrapper() +if __name__ == '__main__': + autoscrapper() diff --git a/req.txt b/req.txt index b9a31de..c43db50 100644 --- a/req.txt +++ b/req.txt @@ -1,4 +1,6 @@ bs4 requests datetime -time \ No newline at end of file +time +pandas +openpyxl