summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Moved away from deprecated SGMLlib parserdevelop-archGravatar Tom Willemsen2011-06-111-17/+19
| | | | | I'd heard that the SGMLlib parser had been deprecated in favor of HTMLParser, so now I've moved to that.
* Removed wizard option, never use itGravatar Tom Willemsen2011-06-111-60/+2
| | | | | I once implemented it for a friend of mine, but he doesn't use it at all, so I'd best just let it loose.
* Archlinux uses python2Gravatar Tom Willemsen2011-05-271-1/+1
|
* interrupt, saveGravatar ryuslash2010-04-272-2/+14
| | | | | | | On keyboard interrupt in the regular flow of downloading the collected images of this session and of last session are saved so as not to destroy the archive accidentally this way. If an item is added to the new collection, it is removed from the old one. If a save is being dumped (uncleanly saved because of KB interrupt), the old collection is appended to the new one. Upon loading the returned string is split to enable removing of the old items.
* Nasty bug where it didn't actually save anythingGravatar ryuslash2010-04-224-4/+21
|
* Log function works, need to start using it nowGravatar ryuslash2010-04-212-6/+42
|
* Merge branch 'kirbybase' into developGravatar ryuslash2010-04-199-33/+2129
|\
| * Not checking and kirbybaseGravatar ryuslash2010-04-196-22/+81
| | | | | | | | | | Using kirbybase to store downloaded images A nasty bug that always returned the wrong result when checking whether an image had already been downloaded has been fixed
| * Archive lookupGravatar ryuslash2010-04-083-11/+13
| | | | | | | | 4grab was saving the archived images to the wrong place, which is now fixed
| * Fixed Python 2.6 compatibility issueGravatar ryuslash2010-04-081-19/+23
| | | | | | | | | | Select was using "raise 'No Match'" to break from non-matches, this is deprecated
| * Added kirbybase moduleGravatar ryuslash2010-04-082-0/+2031
|/
* Error with archiveGravatar ryuslash2010-04-072-7/+4
| | | | The archive function in sorter.py didn't archive to .arch, now it does
* Seperate download functionGravatar ryuslash2010-03-301-19/+16
| | | | download function has been seperated from get_thread_links and get_image_links
* Merge branch 'non-fixed-pages' into developGravatar ryuslash2010-03-251-16/+23
|\
| * non-fixed page countGravatar ryuslash2010-03-251-16/+23
|/ | | | 4grab no longer assumes either 11 or 16 pages, it will keep trying to collect new pages up to the moment it receives a 404 error
* Merge branch 'by-date' into developGravatar ryuslash2010-03-221-0/+13
|\
| * Sorter also sorts by date nowGravatar ryuslash2010-03-221-0/+13
|/
* FAIL and printGravatar ryuslash2010-03-192-6/+5
| | | | | If source and dest in copy are the same, it is no longer reported If an image can't be read, it is counted as failed
* Merge branch 'sorting' into developGravatar ryuslash2010-03-194-134/+356
|\
| * Sorting, multi category, multi resolutionGravatar ryuslash2010-03-194-6/+148
| | | | | | | | | | | | | | | | | | | | After a file has been downloaded a callback function can now be called. The callback function I call checks to see if the resolution of the image appears in the collection of resolutions that has been entered in the configuration file and deletes/moves accordingly. If a file can not be read (which I have noticed happens sometimes), it is removed, not copied and not archived so that it can be retried later. 4grab got a new command-line option, -s --sorter, to sort out old images, running python sorter.py has the same effect, but this seemed pretties. theoretically multiple categories could now be entered into the configuration file seperated by ',', but this hasn't been tested yet. mutliple resolutions could be entered into the configuration file, seperated by ',' like so: 1680x1050,1920x1200. Configuration now checks to see if all the necessary properties are available in the configuration file, if one is missing, it tries to create it.
| * optioncreator, extra optionsGravatar ryuslash2010-03-173-122/+164
| | | | | | | | | | config now has an optioncreator property that will allow another module to select how to prompt for a property resolutions and archive options have been added to config file for sorting functionality
| * Disconnected the property creation functionGravatar ryuslash2010-03-163-29/+67
|/ | | | The function used to create a new property has been changed to be a callback function, so that later on a UI might use a dialog.
* KeyboardInterrupt, 80 columnsHEADmasterGravatar ryuslash2010-03-121-29/+54
| | | | | Keyboard Interruption (CTRL+C) should now be handled gracefully Tried making the 4grab.py file no more than 80 columns wide
* /bin/env seems less reliable than /usr/bin/pythonGravatar ryuslash2010-03-101-1/+1
|
* MergedGravatar ryuslash2010-03-072-4/+3
|\
| * Who knows what the hell I did this timeGravatar ryuslash2010-02-121-0/+3
| |
| * Removed some commentsGravatar ryuslash2010-02-121-4/+0
| |
* | Removed download.py dependencyGravatar ryuslash2010-03-072-94/+116
|/ | | | download.py no longer requires progressbar.py, it now contains a class that accepts another class as a parameter, this may be useful later when adding different ways of interaction
* Stopped saying Failed and Skipped thingsGravatar ryuslash2010-02-122-5/+24
| | | | Now it summarizes at the end
* Added a wizardGravatar ryuslash2010-02-111-3/+38
| | | | The wizard uses his robe and wizard hat to help you download images
* Added --threadGravatar ryuslash2010-02-113-5/+43
| | | | | | With --thread a signle thread ID or thread URL can be entered. If thread is a URL, it will download it. If thread is an ID, a category must also be set.
* Added --categoryGravatar ryuslash2010-02-112-1/+8
| | | | With --category, a category can be specified which will be downloaded, but only that run, next time the configured category will take over again
* Added license info and READMEGravatar ryuslash2010-02-097-1/+789
|
* configuration settings and startfileGravatar ryuslash2010-02-093-4/+28
| | | | | Configuration Settings can now be changed with the -e command line argument execution of 4grab has been moved to 4grab.py, but should also still work with download.py
* merged with commit from RAAMGravatar ryuslash2010-02-092-2/+9
|\
| * Still wasn't working on windowsGravatar ryuslash2010-02-081-0/+2
| | | | | | | | if savedir did not exists, then downloading would never work. Now if it does not exist, it is created, or it crashes and burns if it isn't allowed.
| * Fixed in windowsGravatar unknown2010-02-082-2/+8
| | | | | | | | | | Windows was giving trouble with the os.getenv(HOME) which can be executed in the python shell and IDLE and will return C:\Documents and Settings\username\, but when running a script it will return None. If os.getenv(HOME) is None, then now the exec dir will be used instead
* | working on the command-line arguments hereGravatar ryuslash2010-02-093-8/+37
|/
* ConfigurationGravatar ryuslash2010-01-262-4/+9
| | | | | * A configuration file is made if one hasn't been found * Certain values (currently download category and location) are stored in config file.
* Started working on configuration fileGravatar ryuslash2010-01-182-2/+39
|
* self.fill_char was named self.fill_cahrGravatar ryuslash2010-01-171-1/+1
|
* progress bar windowsGravatar ryuslash2010-01-171-4/+5
| | | | * Made the progress bar 1 character smaller by default, good for windows CMD
* added crunchbangGravatar ryuslash2010-01-171-0/+1
|
* Parser seperation, progress barGravatar ryuslash2010-01-174-74/+109
| | | | | | | * Seperated the parser from the downloader code. * Added a progressbar class, to make it look fancier * Created some functions to do all the work in downloader.py, cleaner now * Changed parser.py to htmlparser.py, since it was conflicting with a built-in module
* Initial commitGravatar ryuslash2010-01-152-0/+119
Can download images from /w/