Python Forum
Code Help, web scraping non uniform lists(ul)
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Code Help, web scraping non uniform lists(ul)
#3
I know where it goes wrong, so when the list on the website is shorter than say 6, the program looks for the sixth when there isn't one and therefore has a non-type error, is what I think is going wrong, or am I misunderstanding? I like the use of the rang function, simplifies the code a little. the error only occurs in large quantities of data, as with the more data you have the more likely it is there will be missing data. And for testing i did do the method you employed of piecewise adding a variable one at a time.
Reply


Messages In This Thread
RE: Code Help, web scraping non uniform lists(ul) - by luke_m - Apr-22-2021, 10:15 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  scraping code misses listings kolarmi19 0 1,091 Jan-27-2023, 10:00 AM
Last Post: kolarmi19
  scraping code nexuz89 0 1,541 Sep-28-2020, 12:16 PM
Last Post: nexuz89
  In need of web scraping code! kolbyng 1 1,777 Sep-21-2020, 06:02 AM
Last Post: buran
  error in code web scraping alexisbrunaux 5 3,899 Aug-19-2020, 02:31 AM
Last Post: alexisbrunaux
  scraping from a website that hides source code PIWI_Protein 1 2,012 Mar-27-2020, 05:08 PM
Last Post: Larz60+
  Web Scraping, Merging two lists and getting data from various dates? AgileAVS 0 1,898 Feb-07-2020, 04:05 PM
Last Post: AgileAVS

Forum Jump:

User Panel Messages

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