Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Parse data from downloaded html
#7
On mobile now so I cant write a full example but you have already done that in your first code snippet. You just left soup with no search or results if it was found or not.

Loop the directory for each html file, then search each file for that soup I gave. If that returns data then it was found and log that file as it contains that ID. Then proceed in that for loop to the next file and repeat.
Recommended Tutorials:
Reply


Messages In This Thread
Parse data from downloaded html - by nikos48 - Jan-22-2020, 06:58 PM
RE: Parse data from downloaded html - by metulburr - Jan-23-2020, 02:54 PM
RE: Parse data from downloaded html - by buran - Jan-23-2020, 02:57 PM
RE: Parse data from downloaded html - by nikos48 - Jan-23-2020, 06:36 PM
RE: Parse data from downloaded html - by metulburr - Jan-25-2020, 01:37 AM
RE: Parse data from downloaded html - by nikos48 - Jan-25-2020, 11:24 AM
RE: Parse data from downloaded html - by metulburr - Jan-25-2020, 07:36 PM
RE: Parse data from downloaded html - by nikos48 - Jan-26-2020, 03:35 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Trying to scrape data from HTML with no identifiers pythonpaul32 2 873 Dec-02-2023, 03:42 AM
Last Post: pythonpaul32
  Deployed Spider on Heroku: How do I email downloaded files? JaneTan 2 1,573 Mar-24-2022, 08:31 AM
Last Post: JaneTan
  Post HTML Form Data to API Endpoints Dexty 0 1,414 Nov-11-2021, 10:51 PM
Last Post: Dexty
  HTML multi select HTML listbox with Flask/Python rfeyer 0 4,654 Mar-14-2021, 12:23 PM
Last Post: rfeyer
  Cleaning HTML data using Jupyter Notebook jacob1986 7 4,161 Mar-05-2021, 10:44 PM
Last Post: snippsat
  Any way to remove HTML tags from scraped data? (I want text only) SeBz2020uk 1 3,479 Nov-02-2020, 08:12 PM
Last Post: Larz60+
  html data cell attribute issue delahug 5 3,171 May-31-2020, 09:18 AM
Last Post: delahug
  Extracting html data using attributes WiPi 14 5,517 May-04-2020, 02:04 PM
Last Post: snippsat
  extrat data from a button html windows11 1 1,998 Mar-24-2020, 03:39 PM
Last Post: Larz60+
  Python3 + BeautifulSoup4 + lxml (HTML -> CSV) - How to loop to next HTML/new CSV Row BrandonKastning 0 2,379 Mar-22-2020, 06:10 AM
Last Post: BrandonKastning

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020