I would like a Python script written that accomplishes the following task.
I have a large number (in the hundreds of thousands) of usernames for Disqus, a comment management system used by many online news sites. I am interested in scraping publicly-accessible information from these users' Disqus profiles. See, for example, this profile (note that given a username, each profile is easily accessible by pasting the username into the URL).
[url removed, login to view]
I would like to extract the following information: name (different from the username; the name in the above example is Trailer Trash), total number of upvotes and date joined, frequented communities, usernames of followers, username of people the user is following, and all comments (including date of comment, text of comment, thread in which the comment was made, number of likes, and number of dislikes). Some users’ profiles are private; we can skip these users.
The script should output results in JSON format.