We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ae3c7c7 commit 1bb8504Copy full SHA for 1bb8504
automate.py
@@ -6,7 +6,7 @@
6
import json
7
8
# Scraping the webpage and storing the data in a csv
9
-data = scraper('http://automatescrape.surge.sh/')
+data = scraper('http://scrape.kjscecodecell.com/')
10
write_csv(data)
11
12
# Reading the scraped data from the csv and preprocessing the data
file_utils.py
@@ -14,7 +14,7 @@ def read_csv():
14
15
def write_csv(data):
16
# opening the file in write mode
17
- with open("studentdetails.csv", 'w') as csv_file:
+ with open("studentdetails.csv", 'w', newline='') as csv_file:
18
# writing to the csv
19
csv_writer = csv.writer(csv_file, delimiter=',')
20
for row in data:
0 commit comments