db75cba06aRewrote most of search. Now we use docopt instead of argparser for parsing input arguments. Changed indentation to 3 spaces from 4 tabs. Added logging, this is where the parent logger for the project is defined. Main function changes things like logging level and makes sure that the query is defined.KevinMidboe2017-12-22 11:47:10 +01:00
46455dc04aAdded representsInt to check if a string only contains numbers and ColorizeFilter to set specific colors to levels of log severity.KevinMidboe2017-12-22 11:43:47 +01:00
39c12b8edeAdded logging and stricter import of functions from local scripts.KevinMidboe2017-12-22 11:42:50 +01:00
a4d400f086Added logging support. Now we also find and return seed and leech count. Size is now tested before troed to convert to int.KevinMidboe2017-12-22 11:42:11 +01:00
b09695c0fdHttp utils now supports logging on our main logger torrentSearch. Changed indentation and added better error handling for requests.urlopen which is the function that fetches from the internet.KevinMidboe2017-12-22 11:41:03 +01:00
060b54b029Added a setup.py for easy install and execution of script.KevinMidboe2017-12-22 11:35:45 +01:00
c8c109f434Merge branch 'master' of github.com:KevinMidboe/pirate_searchKevinMidboe2017-12-22 11:35:08 +01:00
bab8536b0cAdded init file in script folder that holds the current version of the repo.KevinMidboe2017-12-22 11:34:24 +01:00
108a005356Switched from colored to termcolor for coloring our logging output.KevinMidboe2017-12-22 11:33:33 +01:00
7da6975243Now we don't only select our bluray, but all our matches from the query.KevinMidboe2017-11-19 00:08:41 +01:00
cc672efed2Since the piratebay has the file size in human readable form it is hard to sort by file size. Now we have a de-human size function in our utils that can be used to convert these sizes to byte form.KevinMidboe2017-11-19 00:07:40 +01:00
8ec95cf216Added a todo for changing default site.KevinMidboe2017-11-18 23:44:29 +01:00
783d9870f5When building jackett url we no longer use, convert_query_to_percent_encoded_octets, this is now done in our build_url function in http_utils.KevinMidboe2017-11-18 23:38:47 +01:00
655259c146Changed default site to piratebay and added a description on how to change it in our readme.KevinMidboe2017-11-18 23:34:29 +01:00
bc826db4deReads from the changed config file name and removed some variable declaration that is no longer in use.KevinMidboe2017-11-18 23:33:20 +01:00
894234c1faAdded DS_Stores and our config file to our gitignore.KevinMidboe2017-11-18 23:26:27 +01:00
4b02ac56cdNow we have a functional README that will walk someone through setting up and running torrent_searchKevinMidboe2017-11-18 23:21:59 +01:00
ff2f822b5eRenamed our config file and change the apikey variable to be upper case. This is reflected in search.py where we import this config file. Other changes in the search.py file is to so that when importing our config file we use the complete path of our file so we can run our script from anywhere, and still this file will find our config file. That is not use a relative path.,KevinMidboe2017-11-18 23:03:24 +01:00
8586521d15Added humansize for converting byte file sizes to human readable sizes.KevinMidboe2017-11-02 16:24:39 +01:00
c768d1424aNow removes all items we are not intersted in.KevinMidboe2017-11-02 16:24:19 +01:00
ccf55d2654Also added in our torrent class so that all our indexing sites can create the same class so to be easily managed under the same type.KevinMidboe2017-11-02 15:17:08 +01:00
a8c4e84086Changed import to not import entire datetime library.KevinMidboe2017-11-02 15:16:13 +01:00
48aab5785fOur main entry where we now handle our args with argparse and can now enter a query and select site to index using our -s option.KevinMidboe2017-11-02 15:15:53 +01:00
eae828a723A script for doing all our http funcitons like building urls and calling requests.KevinMidboe2017-11-02 15:15:06 +01:00
db570df549Also modular script for calling piratebay, still need a lot of cleanup, but now works.KevinMidboe2017-11-02 15:13:43 +01:00
191458b409Jackett is now a modualr script that fetches in its own way and returns a list of torrent objects.KevinMidboe2017-11-02 15:13:15 +01:00
9a31f7b441Our basic config file for jackett and piratebay. Need to set our host and apikey manually.KevinMidboe2017-11-02 15:12:31 +01:00
b981d12061Moved santize, return_re_match and pagesToCount to utils.KevinMidboe2017-11-01 16:13:50 +01:00
c1c1ca3ad4Renamed pirate_search to torrent_searchKevinMidboe2017-11-01 16:09:06 +01:00
736fefbcadHolds all our general utility functions.KevinMidboe2017-11-01 15:57:38 +01:00
32eacaa581Added a script for searching piratebay by searching through html of piratebay.KevinMidboe2017-11-01 15:56:41 +01:00
49269038cfImports config params and now has the ability to search different sites piratebay or jackett for now.KevinMidboe2017-11-01 15:55:16 +01:00
07afda66edAdded two lines of description in READMEKevinMidboe2017-11-01 14:58:09 +01:00
9482958661Added our main scripts for our to be pirate indexing scripts.KevinMidboe2017-11-01 14:56:42 +01:00