Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Has public_search stopped working? #3

Open
jaypinho opened this issue Jul 8, 2020 · 5 comments
Open

Has public_search stopped working? #3

jaypinho opened this issue Jul 8, 2020 · 5 comments

Comments

@jaypinho
Copy link

jaypinho commented Jul 8, 2020

It looks like the search method still returns API results but with public_search I just get this:

Call:

https://gab.com/api/v1/timelines/public?limit=40&max_id=104479537226061425

Response:

{"error":"This method requires an authenticated user"}

(If I'm logged in, I get an HTML page that says "You don't have permission to view this page.")

@jaypinho
Copy link
Author

jaypinho commented Jul 8, 2020

Looks like Gab may have disabled it: https://twitter.com/jasonbaumgartne/status/1276518618692452360

@ChrisStevens
Copy link
Owner

ChrisStevens commented Aug 14, 2020

@jaypinho
Apologies for the long delay for a reply.

As you said they, unfortunately, disabled that public timeline, and I've yet to find a suitable way to get that same functionality going.

In the new branch, new_searches, two similar functions have been added.

pro_search, which searches the timeline of pro user gabs. It works exactly the same as public_search did, but the timeline it's accessing only shows posts from paid gab users.

featured_search, this searches a few of the featured timelines, hot and top by day, but these only return a few hundred posts a day it looks like, and it's obviously pretty opaque as to what will get returned by Gab and what doesn't.

They've both only been quickly tested by me, but everything looks to be working as it should for them.

@jaypinho
Copy link
Author

jaypinho commented Aug 14, 2020

Awesome, thank you!

Out of curiosity, how did you find the new endpoints? Just clicking around on the site with dev tools open? (Or is there API documentation somewhere?)

@ChrisStevens
Copy link
Owner

No API docs that I know of. So I just play around with the site seeing what I can find, and in this case since the gab code is open source I also took some looks through it to try and find better routes.

@jaypinho
Copy link
Author

Got it, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants