Skip to content

Commit 1bb8504

Browse files
committed
Change Scrape url and windows write fix
1 parent ae3c7c7 commit 1bb8504

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

automate.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
import json
77

88
# Scraping the webpage and storing the data in a csv
9-
data = scraper('http://automatescrape.surge.sh/')
9+
data = scraper('http://scrape.kjscecodecell.com/')
1010
write_csv(data)
1111

1212
# Reading the scraped data from the csv and preprocessing the data

file_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ def read_csv():
1414

1515
def write_csv(data):
1616
# opening the file in write mode
17-
with open("studentdetails.csv", 'w') as csv_file:
17+
with open("studentdetails.csv", 'w', newline='') as csv_file:
1818
# writing to the csv
1919
csv_writer = csv.writer(csv_file, delimiter=',')
2020
for row in data:

0 commit comments

Comments
 (0)