Python Forum
AttributeError: 'NoneType' object in a parser - stops it
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
AttributeError: 'NoneType' object in a parser - stops it
#4
hello dear Larzlo60 and dear Yoriz

first of all many many thanks for the quick reply. well i have to admint that tiis little script goes ovcer my actual knowledge limit

i have no glue what goes wrong here


?S - perhaps i have to have a closer look at the conditions of the script



btw: see here the full output: https://pastebin.com/nBXUW1a1

and here see more .. i hope that helps a bit:

Extracting https://wordpress.org/plugins/automatic-translator-addon-for-loco-translate/
Extracting https://wordpress.org/plugins/wpforo/Extracting https://wordpress.org/plugins/accesspress-social-share/
Extracting https://wordpress.org/plugins/mailoptin/
Extracting https://wordpress.org/plugins/tuxedo-big-file-uploads/

Extracting https://wordpress.org/plugins/post-snippets/
Extracting https://wordpress.org/plugins/woocommerce-payfast-gateway/Extracting https://wordpress.org/plugins/woocommerce-grid-list-toggle/

Extracting https://wordpress.org/plugins/goodbye-captcha/
Extracting https://wordpress.org/plugins/gravity-forms-google-analytics-event-tracking/
Traceback (most recent call last):

  File "/home/martin/dev/wordpress_plugin.py", line 44, in <module>
    print(future.result())

  File "/home/martin/anaconda3/lib/python3.7/concurrent/futures/_base.py", line 428, in result
    return self.__get_result()

  File "/home/martin/anaconda3/lib/python3.7/concurrent/futures/_base.py", line 384, in __get_result
    raise self._exception

  File "/home/martin/anaconda3/lib/python3.7/concurrent/futures/thread.py", line 57, in run
    result = self.fn(*self.args, **self.kwargs)

  File "/home/martin/dev/wordpress_plugin.py", line 33, in parser
    "h3", class_="screen-reader-text").find_next("ul").findAll("li")[:8]]

AttributeError: 'NoneType' object has no attribute 'find_next'
i look forward to hear from you again

yours apollo Smile
Reply


Messages In This Thread
RE: AttributeError: 'NoneType' object in a parser - stops it - by apollo - May-10-2021, 05:11 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  AttributeError: 'ellipsis' object has no attribute 'register_blueprint' Mechanicalpixelz 2 2,543 Dec-29-2021, 01:30 AM
Last Post: Mechanicalpixelz
  BeautifulSoup: 6k records - but stops after parsing 20 lines apollo 0 1,869 May-10-2021, 05:08 PM
Last Post: apollo
  AttributeError: ResultSet object has no attribute 'get_text' KatMac 1 4,508 May-07-2021, 05:32 PM
Last Post: snippsat
  Python 3.9 : BeautifulSoup: 'NoneType' object has no attribute 'text' fudgemasterultra 1 9,096 Mar-03-2021, 09:40 AM
Last Post: Larz60+
  Code stops after 20min+ with no output JacobK 1 1,797 Apr-03-2020, 07:01 PM
Last Post: Larz60+
  AttributeError: 'str' object has no attribute 'xpath' nazmulfinance 4 10,685 Nov-11-2019, 05:15 PM
Last Post: nazmulfinance
  AttributeError: 'str' object has no attribute 'xpath' nazmulfinance 0 3,162 Nov-10-2019, 09:13 PM
Last Post: nazmulfinance
  AttributeError: 'Response' object has no attribute 'replace' Truman 12 23,855 Mar-20-2019, 12:59 AM
Last Post: ichabod801
  AttributeError: 'dict' object has no attribute 'is_active' (PyMongo And Flask) usman 0 5,054 Nov-20-2018, 09:50 PM
Last Post: usman
  BeautifulSoup 'NoneType' object has no attribute 'text' bmccollum 9 14,848 Sep-14-2018, 12:56 PM
Last Post: bmccollum

Forum Jump:

User Panel Messages

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