https://github.com/guillermo-carrasco/social_ids
Get user ids from social network handlers
https://github.com/guillermo-carrasco/social_ids
cli facebook instagram social-ids social-network twitter
Last synced: 2 months ago
JSON representation
Get user ids from social network handlers
- Host: GitHub
- URL: https://github.com/guillermo-carrasco/social_ids
- Owner: guillermo-carrasco
- License: mit
- Created: 2016-11-01T09:37:26.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-01-13T12:55:55.000Z (over 8 years ago)
- Last Synced: 2025-03-18T18:58:17.031Z (3 months ago)
- Topics: cli, facebook, instagram, social-ids, social-network, twitter
- Language: Python
- Size: 11.7 KB
- Stars: 12
- Watchers: 5
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# Social IDs
[](https://travis-ci.org/guillermo-carrasco/social_ids)[](https://badge.fury.io/py/social_ids)
## What?
Get user ids from social network handlers## Why?
If you're a developer and work with social networks you'll know that getting the user ID is not straightforward. Usually
you have to use some sort of SDK and configure access tokens to get that information.Inspired in [ids_please][ids_please] package for Ruby I created this Python tool so that you can
use it as a CLI tool or import it in your code. No need for tokens or SDKs, it does search for the ID
within the page source.## How?
`pip install social_ids`
#### As CLI tool
Quite simple:```
~> socialid --help
Usage: socialid [OPTIONS] NETWORK HANDLEROptions:
--help Show this message and exit.
```#### As a package to import in your code
Simple as well```python
# Import the networks you want
from social_ids.networks import facebook# Then use the get_id method with the handler
_id = facebook.get_id('zuck')
```## Networks
Right now social_ids works with:
## Notes
Recently [2017-01-13] discovered that, at least for Twitter, the ID won't appear in the source code
until the first post has been created. So a Twitter account without any post won't be found by social_ids.[ids_please]: https://github.com/gazay/ids_please