Answered step by step
Verified Expert Solution
Question
1 Approved Answer
this is API scrapping with python API scrapping and I don't exactly know how to read the data and append it. for example the pageone
this is API scrapping with python
API scrapping and I don't exactly know how to read the data and append it.
for example the pageone data is file:///Users/jiyeonmun/Desktop/HW6/data/searchPage1.html
Task 1.2 Load the Data To avoid any problems with GitHub blocking us from downloading the data many times, we have downloaded and saved all the html files in the data folder You will be treating the data folder as your website to be scraped. The path to data folder is stored in DATA_PATH variable In the data folder you will find first 10 pages of highly starred repositories saved as searchPagel.html, searchPage2.html, searchPage3.html searchPage10.html Now read these html files in python and create a soup object. This is a two step proces:s . Read the text in the html files Create the soup from the files that you've read. We recommend that you create a single soup using BeautifulSoups' append0 function ]: 1 # Your code goes here Task 1.2 Load the Data To avoid any problems with GitHub blocking us from downloading the data many times, we have downloaded and saved all the html files in the data folder You will be treating the data folder as your website to be scraped. The path to data folder is stored in DATA_PATH variable In the data folder you will find first 10 pages of highly starred repositories saved as searchPagel.html, searchPage2.html, searchPage3.html searchPage10.html Now read these html files in python and create a soup object. This is a two step proces:s . Read the text in the html files Create the soup from the files that you've read. We recommend that you create a single soup using BeautifulSoups' append0 function ]: 1 # Your code goes hereStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started