Python Forum
BeautifulSoup 'NoneType' object has no attribute 'text'
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
BeautifulSoup 'NoneType' object has no attribute 'text'
#1
I have some Python scripts running on 2-3 Amazon Web Services instances that scrape records from a few websites. The code has been running fine on these AWS instances.

I created a new local VM today, installed the exact same Python libraries (BeautifulSoup, Selenium, ChromeDriver, GeckoDriver, etc.) on that VM as the ones that exist on the other AWS instances, and every single line that I have in the un-changed code that uses BeautifulSoup4 to try to read various fields of data from the pages fails, giving me...

'NoneType' object has no attribute 'text'

Any thoughts as to what could be going on here? I've verified numerous times that I have all of the appropriate software/packages/libraries/etc. installed on the new VM just as they are on the AWS instances where the code actually runs correctly.

Thanks in advance for any recommendations/ideas.
Reply


Messages In This Thread
BeautifulSoup 'NoneType' object has no attribute 'text' - by bmccollum - Sep-11-2018, 10:49 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  How to fix "'dict_values' object has no attribute 'inject_wsgi'" in session_transacti devid 0 1,245 Aug-13-2023, 07:52 AM
Last Post: devid
  Trying to extract style attribute with BeautifulSoup knight2000 1 3,191 Dec-28-2022, 03:06 AM
Last Post: knight2000
  AttributeError: 'ellipsis' object has no attribute 'register_blueprint' Mechanicalpixelz 2 2,466 Dec-29-2021, 01:30 AM
Last Post: Mechanicalpixelz
  Python BeautifulSoup gives unusable text? dggo666 0 1,452 Oct-29-2021, 05:12 AM
Last Post: dggo666
  BeautifulSoup returning text as N/A tantony 6 2,804 Sep-09-2021, 12:59 PM
Last Post: tantony
  AttributeError: 'NoneType' object in a parser - stops it apollo 4 4,094 May-28-2021, 02:13 PM
Last Post: Daring_T
  AttributeError: ResultSet object has no attribute 'get_text' KatMac 1 4,431 May-07-2021, 05:32 PM
Last Post: snippsat
  Python 3.9 : BeautifulSoup: 'NoneType' object has no attribute 'text' fudgemasterultra 1 8,979 Mar-03-2021, 09:40 AM
Last Post: Larz60+
  BeautifulSoup attribute problem zzy 3 3,075 Dec-07-2020, 11:07 PM
Last Post: zzy
  select all the span text with same attribute JennyYang 2 2,180 Jul-28-2020, 02:56 PM
Last Post: snippsat

Forum Jump:

User Panel Messages

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