question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

No matter what I do, I can’t get work.get_comments() to work. Code: from time import time import bs4 import requests import AO3 work = AO3.Work(24560008) work.load_chapters() start = time() comments = work.get_comments(1, 5) print(f"Loaded {len(comments)} comment threads in {round(time()-start, 1)} seconds\n") for comment in comments: print(f"Comment ID: {comment.comment_id}\nReplies: {len(comment.get_thread())}") Error: Traceback (most recent call last): File ".\ao3.py", line 8, in <module> comments = work.get_comments(1, 5) File "C:\Users\nithi\AppData\Local\Programs\Python\Python38-32\lib\site-packages\AO3\works.py", line 272, in get_comments ol = div.find("ol", {"class": "pagination actions"}) AttributeError: 'NoneType' object has no attribute 'find'

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:10 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
Wrench-wenchcommented, Sep 21, 2020

Could you better format your pasted code for readability please?

0reactions
darthnithincommented, Sep 27, 2020

Indeed it did that. I just was ignoring it lol…

Read more comments on GitHub >

github_iconTop Results From Across the Web

get_comments() | Function - WordPress Developer Resources
Retrieves a list of comments. ... Description. The comment list can be for the blog as a whole or for an individual post....
Read more >
Buy Custom / Random Instagram Comments - BuzzVoice.com
At BuzzVoice you can buy real, custom & random Instagram comments with guaranteed results. To get started simply enter your username, choose posts...
Read more >
Buy Instagram Comments - Real & Active | Custom/Random
Buy Instagram Comments (100% Active) at low prices. InstaFollowers is a social media team that provides real IG comments services!
Read more >
Export Comments to Excel Free - EXPORTCOMMENTS.COM
Easily exports all comments from your social media posts to Excel file. You are currently limited to 100 comments / export. Remove limit....
Read more >
Comments: get | Google Drive
GET https://www.googleapis.com/drive/v2/files/ fileId /comments/ commentId ... If successful, this method returns a Comments resource in the response body.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found