Skip to content

Commit

Permalink
driver update
Browse files Browse the repository at this point in the history
  • Loading branch information
andrew-geeks committed Aug 1, 2023
1 parent baa1517 commit e843051
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 3 deletions.
Binary file added chromedriver.exe
Binary file not shown.
4 changes: 3 additions & 1 deletion datasets/carrot1kgprice_dataset.csv
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
Date,Month,MRP,ActualPrice,Discount%
Date,Month,MRP,ActualPrice,Discount%


1 change: 1 addition & 0 deletions datasets/onion1kgprice_dataset.csv
Original file line number Diff line number Diff line change
Expand Up @@ -201,3 +201,4 @@ Date,Month,MRP,ActualPrice,Discount%
29-07-2023,July,50.68,36,29%
30-07-2023,July,50.68,36,29%
31-07-2023,July,47.95,35,27%

1 change: 1 addition & 0 deletions datasets/potato1kgprice_dataset.csv
Original file line number Diff line number Diff line change
Expand Up @@ -380,3 +380,4 @@
29-07-2023,July,54.79,37,32%
30-07-2023,July,54.79,38,31%
31-07-2023,July,54.79,39,29%

1 change: 1 addition & 0 deletions datasets/tomato1kgprice_dataset.csv
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
Date,Month,MRP,ActualPrice,Discount%


4 changes: 2 additions & 2 deletions scrape.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
import datetime
import json

chromedriver_autoinstaller.install()
#chromedriver_autoinstaller.install()
chrome_options = Options()
options = [
"--headless",
Expand All @@ -21,7 +21,7 @@
for option in options:
chrome_options.add_argument(option)

driver = webdriver.Chrome(options=chrome_options)
driver = webdriver.Chrome(options=chrome_options,executable_path='chromedriver.exe')
f = open('list.json')
j_data = json.load(f)

Expand Down

0 comments on commit e843051

Please sign in to comment.