👨👩👦 Social account detection and extraction in Python, e.g. for crawling/scraping.
OTHER License
.. image:: https://img.shields.io/pypi/v/socials.svg :target: https://pypi.python.org/pypi/socials
.. image:: https://img.shields.io/travis/lorey/socials.svg :target: https://travis-ci.org/lorey/socials
.. image:: https://readthedocs.org/projects/socials/badge/?version=latest :target: https://socials.readthedocs.io/en/latest/?badge=latest :alt: Documentation Status
Social Account Detection and Extraction for Python
Install it with pip install socials
and use it as follows:
.. code-block:: python
>>> hrefs = ['https://facebook.com/peterparker', 'https://techcrunch.com', 'https://github.com/lorey']
>>> socials.extract(hrefs).get_matches_per_platform()
{'github': ['https://github.com/lorey'], 'facebook': ['https://facebook.com/peterparker']}
>>> socials.extract(hrefs).get_matches_for_platform('github')
['https://github.com/lorey']
Read more about usage in our documentation
_.
.. _usage in our documentation: https://socials.readthedocs.io/en/latest/usage.html
There's also an API called Socials API
_ that allows you to use the functionality via REST.
You can use a free online version
_, try it in the browser, or deploy it yourself.
.. _an API called Socials API: https://github.com/lorey/socials-api .. _free online version: https://socials.karllorey.com
venv
with virtualenv -p /usr/bin/python3 venv
.source venv/bin/activate
.pip install -r requirements-dev.txt
.tox
or python setup.py test
This package was created with Cookiecutter_ and the audreyr/cookiecutter-pypackage
_ project template.
.. _Cookiecutter: https://github.com/audreyr/cookiecutter
.. _audreyr/cookiecutter-pypackage
: https://github.com/audreyr/cookiecutter-pypackage