101 Commits

Author SHA1 Message Date
2c245a5a5c Removed unused and commented code. 2017-12-22 11:47:28 +01:00
db75cba06a Rewrote 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. 2017-12-22 11:47:10 +01:00
46455dc04a Added representsInt to check if a string only contains numbers and ColorizeFilter to set specific colors to levels of log severity. 2017-12-22 11:43:47 +01:00
39c12b8ede Added logging and stricter import of functions from local scripts. 2017-12-22 11:42:50 +01:00
a4d400f086 Added logging support. Now we also find and return seed and leech count. Size is now tested before troed to convert to int. 2017-12-22 11:42:11 +01:00
b09695c0fd Http 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. 2017-12-22 11:41:03 +01:00
060b54b029 Added a setup.py for easy install and execution of script. 2017-12-22 11:35:45 +01:00
c8c109f434 Merge branch 'master' of github.com:KevinMidboe/pirate_search 2017-12-22 11:35:08 +01:00
bab8536b0c Added init file in script folder that holds the current version of the repo. 2017-12-22 11:34:24 +01:00
108a005356 Switched from colored to termcolor for coloring our logging output. 2017-12-22 11:33:33 +01:00
11aa1a095e Update README.md 2017-11-19 17:05:12 +01:00
8f3add3d9e Added Idea section to readme 2017-11-19 17:04:42 +01:00
404d1b161e Added codecov and travis build status in readme 2017-11-19 00:34:22 +01:00
f0972607d1 Merge branch 'master' of github.com:KevinMidboe/pirate_search 2017-11-19 00:29:17 +01:00
ceed5ba145 Wanted to add a init file here. 2017-11-19 00:29:03 +01:00
dbbcb08f16 travis config file. 2017-11-19 00:28:49 +01:00
d12ef55ef8 Added test base and coverage report for codecov. 2017-11-19 00:26:51 +01:00
dd7885ad57 Removed unused file. 2017-11-19 00:19:29 +01:00
f333681071 Update README.md 2017-11-19 00:10:22 +01:00
7da6975243 Now we don't only select our bluray, but all our matches from the query. 2017-11-19 00:08:41 +01:00
cc672efed2 Since 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. 2017-11-19 00:07:40 +01:00
8ec95cf216 Added a todo for changing default site. 2017-11-18 23:44:29 +01:00
ab543f405f Forgot header for table of contents. 2017-11-18 23:42:38 +01:00
72d0c74061 forgot to add this, removed import. 2017-11-18 23:39:12 +01:00
783d9870f5 When 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. 2017-11-18 23:38:47 +01:00
655259c146 Changed default site to piratebay and added a description on how to change it in our readme. 2017-11-18 23:34:29 +01:00
bc826db4de Reads from the changed config file name and removed some variable declaration that is no longer in use. 2017-11-18 23:33:20 +01:00
519222ec63 The start of our requirements file. 2017-11-18 23:32:26 +01:00
37b344891e Now config will not be pushed. 2017-11-18 23:32:09 +01:00
894234c1fa Added DS_Stores and our config file to our gitignore. 2017-11-18 23:26:27 +01:00
4b02ac56cd Now we have a functional README that will walk someone through setting up and running torrent_search 2017-11-18 23:21:59 +01:00
ff2f822b5e Renamed 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., 2017-11-18 23:03:24 +01:00
8586521d15 Added humansize for converting byte file sizes to human readable sizes. 2017-11-02 16:24:39 +01:00
c768d1424a Now removes all items we are not intersted in. 2017-11-02 16:24:19 +01:00
dd1c0cabfd Appends only the torrent object. 2017-11-02 16:23:57 +01:00
7a2c760818 Now returns human size of size 2017-11-02 16:23:40 +01:00
ccf55d2654 Also 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. 2017-11-02 15:17:08 +01:00
a8c4e84086 Changed import to not import entire datetime library. 2017-11-02 15:16:13 +01:00
48aab5785f Our 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. 2017-11-02 15:15:53 +01:00
eae828a723 A script for doing all our http funcitons like building urls and calling requests. 2017-11-02 15:15:06 +01:00
db570df549 Also modular script for calling piratebay, still need a lot of cleanup, but now works. 2017-11-02 15:13:43 +01:00
191458b409 Jackett is now a modualr script that fetches in its own way and returns a list of torrent objects. 2017-11-02 15:13:15 +01:00
9a31f7b441 Our basic config file for jackett and piratebay. Need to set our host and apikey manually. 2017-11-02 15:12:31 +01:00
b981d12061 Moved santize, return_re_match and pagesToCount to utils. 2017-11-01 16:13:50 +01:00
c1c1ca3ad4 Renamed pirate_search to torrent_search 2017-11-01 16:09:06 +01:00
736fefbcad Holds all our general utility functions. 2017-11-01 15:57:38 +01:00
32eacaa581 Added a script for searching piratebay by searching through html of piratebay. 2017-11-01 15:56:41 +01:00
49269038cf Imports config params and now has the ability to search different sites piratebay or jackett for now. 2017-11-01 15:55:16 +01:00
07afda66ed Added two lines of description in README 2017-11-01 14:58:09 +01:00
9482958661 Added our main scripts for our to be pirate indexing scripts. 2017-11-01 14:56:42 +01:00