A collection of scripts we use on pcworms.blog.ir

Farooq Karimi Zadeh a70387bdc5 Delete 'postvotes.db.db' 4 years ago
.gitignore e03562bde3 Initial commit 4 years ago
LICENSE b6a50f7bc5 Adding author information 4 years ago
README.md 353ad9d632 Adding docs 4 years ago
bayan_avatar.py ebc87fb18f Some fixes 4 years ago
goodpost.py 9db0105e02 Finally working! 4 years ago
unknown.jpg 8cd3973df6 For bayan_avatar.py 4 years ago

README.md

helper-scripts

A collection of scripts we use on pcworms.blog.ir

We use these scripts on pcworms.blog.ir for different purposes. You need a server to host them. If you don't have one or you can't afford, simply use a shell server like https://hashbang.sh or http://blinuxshell.ir

bayan_avatar.py

This returns the avatar of a person. We(pcworms authors) use this script to show our avatar next to our names under articles. Author's name should be sent to server via q variable. Example:

http://example.com/?q=Farooq Karimi Zadeh

Note that you should change the URL of your avatar in scripts file(it has been hardcoded). In the case which given name is not one of those scripts assume, the picture unknown.jpg will be returned instead of avatar. You can change file name and path from unknown.jpg to anything.

goodpost.py [WIP]

This one is for collecting vote of visitors.