How to write a python script which scrape data from a web page and how to export it in CSV format? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

How to write a python script which scrape data from a web page and how to export it in CSV format?

How to write a python script which scrape data from web page and how to export it in CSV format?

5th Nov 2021, 4:38 AM
Haris
2 Answers
+ 3
file = open("newfile.csv", "w") file.write("Some new text") file.close() file = open("newfile.csv", "r") print("Reading new contents") print(file.read()) print("Finished") file.close() # Keep learning & happy coding :D https://www.sololearn.com/learning/1073/2447/5057/1
5th Nov 2021, 7:05 AM
SoloProg
SoloProg - avatar
0
Is there any module used or without module?
5th Nov 2021, 1:59 PM
Haris