pyWA – 1.72!
2Alright,
after some busy developing this weekend I am pleased to announce the next release!
The changelog is below:
8.14.11 Version 1.72
*Complete rewrite of the download functions. Much more efficient, download speed increased significantly. Download function is now properly threaded. If anything breaks let me know.
*Download function know returns more specific error cases.
*Webserver now runs multithreaded. This speeds up simoultaneous downloads significantly.
*Webserver gives more info on downloads.
*If no webserver password is set, the bot now sets a random one.
*Removed: Webserver database output, since its broken. If anyone actually used this, let me know!
*File web.py is now obsolete. The webserver is integrated in WHATauto.py
*Download function for hdbits changed. Username and password are only required for downloading, no passkey needed. Requires setting 'Lock session to IP' to No under 'Profile'-'Security' on hdbits.
*Fix: Automatic downloads which do not match the size filter or have raised a download error increase the downloaded count in %stats.
*Fix: reconnect function fails under certain conditions
*Exceptions are now logged to file for easier debugging
*Changed output formatting for easier readability
*The logfile for the most recent session is being written into logs/pyWALog.txt (as well as to the date formated path) to allow for quicker access. It gets overwritten on each restart.
*Fix: the reports are not logged properly
*Added message level 'warning', for important but messages which are not errors
Upgrading:
If you are running version 1.7x, just replace WHATauto.py. If you are upgrading from the 1.2* branch or earlier, please start from scratch.
Download: release-1.72
pyWA – 1.71!
1Hello everyone!
It has been way to long since the last release – and since j5 is not actively developing anymore I have decided to publish my own updated version. Since I did not initially intend to post it, i didn't bother creating a changelog – the below is just a summary of the more recent changes.
I will also be trying to keep the regex.conf up to date. However, since I am not a member of most sites on that long list, I would be grateful for any help you can give me. You can find me as always in #whatbot on what-network.net.
8.10.11 Version 1.7
*Blubba's first major release
*Probably half of the code has been rewritten
*The bots _should_ now be stable – they detect and handle network errors and timeouts now (no more need to %disconnect and %connect because the bot had silently timed out)
*Two new functions, %whoisall and %whoami: %whoisall sends a whois to all announce bots on all currently connected networks and returns the findings, checking their idents with those found in regex.conf. This should simplify the process of determining faults in the config file. %whoami sends a whois on each connected network for the botnick. It checks if the bot is currently in the announce channel, and reports back to the user.
*Most user functions have been rewriten, mostly to stop running into Exceptions. If you find a way to break the bot, let me know!
*A lot of sites where added. The connect functions are now checking more closely if enough variables in credentials.conf are set.
*the keys for each site in credentials.conf have changed for quite a few sites. If you want to use a site properly, you will need to fill them all out.
*Fixed a major security issue.
*Runs on python 2.5, 2.6 and 2.7
*Option to bind the webserver to a specific ip. This is set under 'webserverip' in setup.conf
*Lots of other things have changed.
Download here: removed
pyWA – 1.291 Quick BugFix
1Don't ask
Please just download this and over-write your WHATauto.py if you downloaded 1.29!
If you are upgrading from an earlier version, over-write all *.py* files.
If you are upgrading before 1.28, you also have to add a section to your [setup] config. Read the post about 1.28 to see what to do.
Downloaded >> pyWHATauto-1.291
pyWA – 1.29
0Changelog:
- *Added a fun command. %ragequit
- *Fixed the waffles download url. Waffles will NOT work unless you upgrade to 1.29!
- *Spruced up the download routine a bit to handle filenames passed by the GM script
- *Updated TC's regex. You must add the "irckey" field in credentials.conf for it to work.
- *You no longer need filtertype= on sites that only have one announce type. For now, the only site that requires filtertype is what.cd
- *Bitgamer login fixed.
- *Fixed the version checking before %update.
- *Added capturing of naughty announcements that don't fit my regex. The only way this will help is if your bot is ALSO on the what network!
- *Fixed PTP's regex, and switched to #announce since HAL isn't in #announce-ssl anymore. Also, the available filter options have changed, since they are using a new announce format.
I can't remember what files I changed. Not like any of you read this crap anyway. Just replace all the .py* files and you should be good.
Download >> (removed. Download 1.291 instead)
pyWA 1.28 – Now with THE BUTTON
0It's like downloading, only sexier! ©®™
Changelog:
- *Changed the behavior of threads being created/deleted for parsing announcements. Nothing should be missed now! (Thanks to mavin for pointing it out!).
- *Fixed the "size" filter to handle torrents that are created in a non-traditional way (BMTV!).
- *Changed the "size" output level. It is now at "info" and not "filter".
- *Added the sqliteDB for creating a history of announcements!
- *Added a website (VERY basic) that shows the last 100 announcements for every site. http://<seedboxIP>:<port>/index.pywa Note that this currently has bugs with certain character sets, which i'm working on. It shouldn't affect your usage, but you may see pyWA spit out errors at certain points. I'm working on it.
- *Added support for the Unicode in many circumstances.
- *Added the ability to have the bot download a torrent via http://<seedboxIP>:<port>/dl.pywa?password=<pass>&site=<name>&id=<number>
- *The above, integrated with a Greasemonkey script, allows you to one-click download to your torrent box
- *The above, integrated with a Greasemonkey script, allows you to one-click download to your torrent box
- *Added deli.sh.
- *Added awesome-hd.
- *Re-Added karagarga.
You must replace ALL .py* files, including the two new files db.py and web.py.
If you are upgrading from an earlier version, you do not need to replace all your .confs. However, you do need to add two new lines to setup.conf. Open up setup.conf, and under the first section [setup], scroll to the bottom of the section (BEFORE the [notification] section starts) and add:
password=<pass>
port=<port>
Fill in the password and port to your liking. These will the used to access pyWA remotely. I used port 8080. Please do not use any special characters in the password. This password ONLY protects adding torrents to pyWA, so it's not a major security issue.
The GM script can be found here: http://userscripts.org/scripts/show/85457
It works on Firefox+Greasemonkey as well as Chrome, however you must edit the script before installing it. Save the script to your desktop and edit it with your favorite editor. Edit the line that starts:
var weblink = blahblah
into:
var weblink = "http://<ip of your server>:<port you designated in setup.conf>/dl.pywa?pass=<pass you designated in setup.conf>"
eg:
var weblink = "http://20.20.20.20:8080/dl.pywa?pass=fun"
Now start pyWA like normal, browse to any site supported by the GM script, and you should see a new link before each DL link labeled "pWA". Click it, and see what happens! MAGIC!
Download >> pyWHATauto-1.28
EXAMPLE SETUP.CONF FILE:
pyWA 1.27
0pyWA 1.27
Changelog:
- *Fix for What.cd's mis-spelling of "attachment" so that torrent names are back to names and not numbers.
- *Fix for BTN's regex. "releasename" is now a filter option (not all BTN's releases have it though).
- *Fixed the all_tags filter option. It should work now! HOWEVER, all_tags DOES NOT use regex since it uses a special matching comparison. In all_tags, using "cience" WILL match "science". DO NOT PREPEND ANY TAGS IN ALL_TAGS WITH A @!
- *Added the SIZE limiter to ALL sites! (Thanks paperk!). Use like "size=small limit, upper limit". THIS IS IN MEGABYTES. If you use GB in any other filters, like on SCC, you have to convert to MB!
You have to replace all .py* files for this release to work, as well as regex.conf.
Also, if you're using SCC with filters that include the "size" filter option, the format has now changed to MB not GB.
Download >> pyWHATauto-1.27
pyWA 1.26
0Fix for what.cd mainly.
Changelog:
- *Fixed a bug that %sites to crash the bot when using custom.conf (ty pred!)
- *STR regex fixed.
- *Added karagarga.
- *Started adding in the freepercent routine to stop downloads. Not finished.
- *Added in a fix for what.cd to include REFERER when logging in.
- *Added in the USER-AGENT when logging in. Just for kicks, right?
Just replace WHATauto.py if you’re upgarding.
Download >> pyWHATauto-1.26
pyWA 1.25
0Changelog:
- *Changed when pyWA uses credentials to connect to an irc server. If, under credentials, you specify ircusesignon=1 then pyWA will send the username/password combo when connecting to the server (usually used for bouncers). If it is not present, then it will just connect anonymously.
- *Added the ability for pyWA to handle several torrent sites all on the same physical IRC network. For this to work, all the sites MUST specify the EXACT SAME irc server in the address field. However, there are a few quirks with this implementation. If both sites specify the same channel to join in #chanfilter, then it will respond to commands twice!
- *Added TheBox, TheEmpire, (both require a preset cookie) and HDBits (Thanks predakanga!) For this to work you need to add the sites to setup.conf, and the relevant sections to credentials.conf!
- *Fixed a bug when disconnecting a network when not using the alias name. (Thanks predakanga!)
pyWA 1.241
0Woops! Somehow, in between letting testers use 1.24 and the actual release, I screwed up Waffles IRC. Here's the fix!
Replace WHATauto.py and regex.conf!
Download >> pyWHATauto-1.241
pyWA 1.24
0
MmmMmmmmmmMMmmM WAFFLES!
Changelog:
- *Updated TL's regex to add 'group' as a filter option.
- *Changed PTP's announce channel and format.
- *%version now shows pyWA and regex.conf versions.
- *Waffles support added, which required re-tooling the download routines.
Download >> pyWHATauto-1.24