Skip to main content

SocialPy

Use social networks like a hacker.

SocialPy has multiple function and is designed to be very flexible. The command line tools allowed you to post viva the terminal. This is the way hacker should post. Write your own scrips to post automatically. To storage some post, i implement a data-serve with a web front end. It's only a django project and has vary low security settings. Don't push it to a public web-server.

SocialPy is a small private project. I do it just for fun. So some parts are really dirty. I would clean them up, if I'm boring. Or watch Rick and Morty? :D

quick start

It's a python package, use pip to install.

pip install socialpy

Now setup the gateway. All keys are storage in your home folder ~/.socialpy

python -m socialpy.client setup

Where you find the key's? That is a little bit difficult. Maybe I should write something about that. Or should I watch Rick and Morty again?

It's time to post something funny.

???

You can write your own python script and do crazy stuff.

???

Look in the examples folder for more fun.

Before you can use the data-server, you have to initialize the database.

python -m socialpy.server setup

Start the server

python -m socialpy.server run

and then go to http://your.ip:9999. Write some awesome text. Enter the data from your scrips

from socialpy.data import Post

for post in Post.objects.all():
  #do something with the post

This was the quick start. You can you much more. The doc coming soon, I promise.

Setup Raspberry Pi

I use a Raspberry Pi as a small server. This is how I set it up.

python3 -m venv venv
source venv/bin/activate
pip install socialpy

Setup

Instagram

This api uses the e-mail and password.

Twitter

Run the twitter_key.py script from the examples. It create and displays all the key.

Client

More information about the client module.

python -m socialpy.client setup
python -m socialpy.client --file your/file
python -m socialpy.client show
python -m socialpy.client post --networks facebook twitter --text "Hallo Welt"

Server

More information about the server module.

python -m socialpy.server setup
python -m socialpy.server createadmin
python -m socialpy.server run --settings server
python -m socialpy.server deletedb

Data

More information about the data module.

python -m socialpy.data show

Bot

More information about the bot module.

coming soon

Development

Only developer stuff. Clone the repo

git clone https://github.com/axju/socialpy.git
cd socialpy

Setup avirtual envirument

python3 -m venv venv
source venv/bin/activate

Install socialpy

pip install -e .

Setup the db for the data-server

python -m socialpy.server setup

You can uses the django manage.py in the server module.

python socialpy/server/manage.py

Some infos

https://github.com/tweepy/tweepy https://github.com/LevPasha/Instagram-API-python https://github.com/jgorset/facepy

Metadata

Release files for socialpy 0.0.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for socialpy 0.0.3
File Size Uploaded
socialpy-0.0.3.tar.gz 13.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for socialpy 0.0.3
File Interpreter ABI Platform
socialpy-0.0.3-py3-none-any.whl Python 3 none any Details

Total release size: 37.3 kB

Release files / socialpy-0.0.3.tar.gz

Download URL socialpy-0.0.3.tar.gz
Size 13.1 kB
Tags Source
SHA-256 checksum
How to use checksums
3d3961959df32834ec49226dfb6d0e667bb222ecd994cf5e0b16af73c410cfa4
BLAKE2b-256 checksum
How to use checksums
22cc2e588eb01eaf134dc5d2726da095a373c80389d23932605be45ff6fb452e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.2.0 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.6.5

Release files / socialpy-0.0.3-py3-none-any.whl

Download URL socialpy-0.0.3-py3-none-any.whl
Size 24.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f91bbde73b4c07a6f25c26429d9913f99ae5c0b9f01dcaeaba2e58ae81e932df
BLAKE2b-256 checksum
How to use checksums
1ca32de9a6de8736c7d1c00f13c65e8d1dc6b976c4911fd19f54611a9a9357f1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.2.0 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.6.5

Release history Release notifications | RSS feed

This release

0.0.3 This release

2 release files

0.0.2

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page