Python Forum
Beautiful Soup (suddenly) doesn't get full webpage html
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Beautiful Soup (suddenly) doesn't get full webpage html
#8
(Jul-11-2020, 02:43 PM)j.crater Wrote: Your code works well and I can definitely continue from here. Frankly, I have no idea what was different on my attempt this time, since using requests.get() and B.S. gave good results on my first try.
They may have changes source,so now is almost all code generated bye JavaScript.
(Jul-11-2020, 02:43 PM)j.crater Wrote: Given your examples with B.S. and Selenium, can Selenium replace B.S. entirely for use with scraping/navigating websites?
You use Selenium only when it's necessary and can not get content only using Requests/BS.
This is usually the case with heavy sites eg to pick a example stock exchanges sites that we have many Thread about.

To better understand what JavaScript DOM(Document Object Model) dos in browser.
Use this address as before:
https://www.youtube.com/results?search_query=python
Now turn off JavaScript in Browser,the reload page what do you see now?
Reply


Messages In This Thread
RE: Beautiful Soup (suddenly) doesn't get full webpage html - by snippsat - Jul-11-2020, 03:28 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Soup('A') new_coder_231013 6 2,788 Aug-12-2023, 10:55 AM
Last Post: Pubfonts
  Selenium suddenly fails to find element Pavel_47 3 6,518 Sep-04-2022, 11:06 AM
Last Post: Pavel_47
Lightbulb Python Obstacles | Kung-Fu | Full File HTML Document Scrape and Store it in MariaDB BrandonKastning 5 3,053 Dec-29-2021, 02:26 AM
Last Post: BrandonKastning
  Beautiful Soup - access a rating value in a class KatMac 1 3,543 Apr-16-2021, 01:27 PM
Last Post: snippsat
  HTML multi select HTML listbox with Flask/Python rfeyer 0 4,809 Mar-14-2021, 12:23 PM
Last Post: rfeyer
  *Beginner* web scraping/Beautiful Soup help 7ken8 2 2,717 Jan-28-2021, 04:26 PM
Last Post: 7ken8
  Help: Beautiful Soup - Parsing HTML table ironfelix717 2 2,784 Oct-01-2020, 02:19 PM
Last Post: snippsat
  Requests-HTML vs Beautiful Soup - How to Choose? robin73 0 3,889 Jun-23-2020, 02:53 PM
Last Post: robin73
  Python3 + BeautifulSoup4 + lxml (HTML -> CSV) - How to loop to next HTML/new CSV Row BrandonKastning 0 2,439 Mar-22-2020, 06:10 AM
Last Post: BrandonKastning
  looking for direction - scrappy, crawler, beautiful soup Sly_Corn 2 2,547 Mar-17-2020, 03:17 PM
Last Post: Sly_Corn

Forum Jump:

User Panel Messages

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