Skip to main content

Use social networks like a hacker

Project description

# 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.
```bash
pip install socialpy
```
Now setup the gateway. All keys are storage in your home folder ~/.socialpy
```bash
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.
```bash
???
```
You can write your own python script and do crazy stuff.
```python
???
```
Look in the examples folder for more fun.

Before you can use the data-server, you have to initialize the database.
```bash
python -m socialpy.server setup
```
Start the server
```bash
python -m socialpy.server run
```
and then go to http://your.ip:9999. Write some awesome text. Enter the data from your scrips
```python
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.

```bash
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.

```bash
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.

```bash
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.

```bash
python -m socialpy.data show
```

## Bot
More information about the bot module.

coming soon

## Development
Only developer stuff.
Clone the repo
```bash
git clone https://github.com/axju/socialpy.git
cd socialpy
```
Setup avirtual envirument
```bash
python3 -m venv venv
source venv/bin/activate
```
Install socialpy
```bash
pip install -e .
```
Setup the db for the data-server
```bash
python -m socialpy.funcs setupdb
```
You can uses the django manag.py like
```bash
python -m socialpy.data startapp newapp
```

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


Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

socialpy-0.0.2.tar.gz (11.7 kB view details)

Uploaded Source

Built Distribution

socialpy-0.0.2-py3-none-any.whl (21.2 kB view details)

Uploaded Python 3

File details

Details for the file socialpy-0.0.2.tar.gz.

File metadata

  • Download URL: socialpy-0.0.2.tar.gz
  • Upload date:
  • Size: 11.7 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for socialpy-0.0.2.tar.gz
Algorithm Hash digest
SHA256 c9351c15065197e556afc9da75ff3f5cdede94473c81475f170ebfd11665b0e5
MD5 1e465b94ef99e434d3150d18ef0df843
BLAKE2b-256 809afab640f2ce3e570a15b48b119b08d39f4b7d99aaba63403cfe83754e92e1

See more details on using hashes here.

File details

Details for the file socialpy-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: socialpy-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 21.2 kB
  • Tags: Python 3
  • Uploaded using 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

File hashes

Hashes for socialpy-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 571f0ee4ca042820ad4c9b3ed8b10a6c3b2c1ec13299b30baa4a196959088ff4
MD5 f260103f8acc2069ad8bf5d3365781b4
BLAKE2b-256 029f8e2745630b758568ec8898b81d82f5dcb415b68165e6d81c9bd6496a3404

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page