GithubHelp home page GithubHelp logo

khs123 / social_ids Goto Github PK

View Code? Open in Web Editor NEW

This project forked from guillermo-carrasco/social_ids

0.0 1.0 0.0 12 KB

Get user ids from social network handlers

License: MIT License

Python 96.71% Shell 3.29%

social_ids's Introduction

Social IDs

Build StatusPyPI version

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 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 HANDLER

Options:
  --help  Show this message and exit.

As a package to import in your code

Simple as well

# 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:

  • Facebook
  • Twitter
  • Instagram

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.

social_ids's People

Contributors

guillermo-carrasco avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.