manu-chroma / username-availability-checker

Live at : https://username-check.herokuapp.com/
95 stars 37 forks source link

Add disqus support #83

Open jayvdb opened 6 years ago

jayvdb commented 6 years ago

Lots of people have claimed a disqus username which is otherwise used by a developer, because developers often do not use disqus.

seeeturtle commented 6 years ago

Since disqus doesn't work well with requests, support for disqus is closed until the solution is found.

jayvdb commented 6 years ago

Still needed. Can be labeled stale, and help-wanted, etc, to bring in new contributors with new ideas on how to solve complex problems.

seeeturtle commented 6 years ago

ok, labeling stale makes sense

abhishekmadhu commented 6 years ago

Hello Sirs,

tl;dr : NEED HELP sending POST requests to Disqus API

I have been interested in this project for some time. I looked into the Disqus API Documentation and couldn't find anything useful.

What I found to be noteworthy is:

Now, Sirs, I'm new to this domain, and I really want to contribute something to this project as it seems interesting. Can anyone please guide me on how to proceed, as I am finding it hard to understand how to do the same mentioned above? That would be really valuable to me.

Thanks. :)

seeeturtle commented 6 years ago

Hello @abhishekmadhu. The problem was that disqus refuses requests from requests you can simply know that with the code below:

import requests
import username_api

res = requests.get(username_api.get_profile_url('disqus', 'username that exists'))
res.text # it will return error page

So I tried to modify user-agent as one of the support browsers but didn't work.

By the way, thank you for your attention to our project :)