Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribed

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 here

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Oracle Database 10g Insider Solutions

Authors: Arun R. Kumar, John Kanagaraj, Richard Stroupe

1st Edition

0672327910, 978-0672327919

More Books

Students also viewed these Databases questions

Question

Explain the factors influencing wage and salary administration.

Answered: 1 week ago

Question

Examine various types of executive compensation plans.

Answered: 1 week ago

Question

1. What is the meaning and definition of banks ?

Answered: 1 week ago