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

Fallback to scraping users profile page directly for entity_id #2

Closed
mobeigi opened this issue Jul 21, 2019 · 1 comment
Closed

Fallback to scraping users profile page directly for entity_id #2

mobeigi opened this issue Jul 21, 2019 · 1 comment
Labels
enhancement New feature or request good first issue Good for newcomers
Milestone

Comments

@mobeigi
Copy link
Owner

mobeigi commented Jul 21, 2019

Add a fall back method: scraping a users profile page directly in get_entity_id_from_vanity_name if we fail to use composer query search.

Which is probably what tools like this do: https://findmyfbid.com/

So far I haven't run into a case where current solution fails though.

@mobeigi mobeigi added enhancement New feature or request good first issue Good for newcomers labels Jul 21, 2019
@mobeigi
Copy link
Owner Author

mobeigi commented Jul 25, 2019

This or another solution might be required as it looks like ajax/mercury/composer_query.php gets rate limited after some time. However, I was hitting it pretty hard frequently to running script once per day as intended will probably not trigger any rate limiting.

The 'rate limiting' is odd in that the endpoint returns values for some queries (direct friend names like John Citizen but not for vanity name searches / page name searches etc.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant