Question: Using Python 3 and and use only the urllib.request library Prompt the user for a search term, and download all the ebay items matching that

Using Python 3 and and use only the urllib.request library

Using Python 3 and and use only the urllib.request library Prompt the

user for a search term, and download all the ebay items matching

that term. Save the names, prices, and urls to a text file.

Example: Your program might prompt: Enter a search term: If the user

Prompt the user for a search term, and download all the ebay items matching that term. Save the names, prices, and urls to a text file. Example: Your program might prompt: Enter a search term: If the user types Commodore+PET your program will search ebay for that term, download the search page, and scrape all the item links. For each link, it will extract: 1) the title, 2) the price, and 3) the URL, and save them all to a text file ebay+Commodore+PET.csv, with each item on its own line and each field separated by commas RARE Vintage Commodore PET 4016 Computer TESTED AND WORKING Very Nice Cond.!,5429.99,https://www.ebay.com/itm/RARE-vintage-Commodore-PET-4016-Computer- TESTED-AND-WORKING-Very-Nice- Cond/142761828809?epid-534111379&hash-item213d44a1c9:g:krkAAOSvv7daitvj Commodore Pet B128 Disk Drive to Computer IEEE 488 cable,$75.00,https://wvw.ebay. com/itm/Commodore-Pet-B128-Disk-Drive-to-Computer IEEE-488-cable/2829300373892hash-item41dffic28d:g:vXsAAOSvPc9WvIic MOS 901482-02 Commodore PET ROM DOS Chip,$49.95,https://ww.ebay.com/itm/MOS 901482-02-Commodore-PET-ROM-DOS- Chip/183177876527?hash-item2aa640942f:g:XioAAOSw4pa0U8r (Note that multiple words should be separated by + signs instead of spaces) STEP 1: Form the URL and download the search page Prompt the user for a search term and save as a string search. Use that term to form a URL as followS: Prompt the user for a search term, and download all the ebay items matching that term. Save the names, prices, and urls to a text file. Example: Your program might prompt: Enter a search term: If the user types Commodore+PET your program will search ebay for that term, download the search page, and scrape all the item links. For each link, it will extract: 1) the title, 2) the price, and 3) the URL, and save them all to a text file ebay+Commodore+PET.csv, with each item on its own line and each field separated by commas RARE Vintage Commodore PET 4016 Computer TESTED AND WORKING Very Nice Cond.!,5429.99,https://www.ebay.com/itm/RARE-vintage-Commodore-PET-4016-Computer- TESTED-AND-WORKING-Very-Nice- Cond/142761828809?epid-534111379&hash-item213d44a1c9:g:krkAAOSvv7daitvj Commodore Pet B128 Disk Drive to Computer IEEE 488 cable,$75.00,https://wvw.ebay. com/itm/Commodore-Pet-B128-Disk-Drive-to-Computer IEEE-488-cable/2829300373892hash-item41dffic28d:g:vXsAAOSvPc9WvIic MOS 901482-02 Commodore PET ROM DOS Chip,$49.95,https://ww.ebay.com/itm/MOS 901482-02-Commodore-PET-ROM-DOS- Chip/183177876527?hash-item2aa640942f:g:XioAAOSw4pa0U8r (Note that multiple words should be separated by + signs instead of spaces) STEP 1: Form the URL and download the search page Prompt the user for a search term and save as a string search. Use that term to form a URL as followS

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!