Skip to content

Commit

Permalink
add plugin for gogoimage.org
Browse files Browse the repository at this point in the history
  • Loading branch information
regosen committed Jan 1, 2018
1 parent 677bb1e commit 33c4f13
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 10 deletions.
21 changes: 11 additions & 10 deletions README.md
Expand Up @@ -18,26 +18,27 @@ Platforms, Python Versions:

Gallery Plugins:

* imgur (albums and galleries)
* imgbox
* imagevenue
* imagefap
* 4chan
* eroshare
* fuskator
* gfycat
* xHamster
* gogoimage
* imagefap
* imagevenue
* imgbox
* imgur (albums and galleries)
* Pornhub (albums and single videos)
* xVideos
* shimmie
* fuskator
* eroshare
* vidble
* xHamster
* xVideos

Generic Plugin works for:

* setsdb.org
* alafoto.com
* forum.phun.org
* more
* setsdb.org
* (more)

## Installation

Expand Down
19 changes: 19 additions & 0 deletions gallery_plugins/plugin_gogoimage.py
@@ -0,0 +1,19 @@
# Plugin for gallery_get.

# Each definition can be one of the following:
# - a string
# - a regex string
# - a function that takes source as a parameter and returns an array or a string. (You may assume that re and urllib are already imported.)
# If you comment out a parameter, it will use the default defined in __init__.py

# identifier (default = name of this plugin after "plugin_") : If there's a match, we'll attempt to download images using this plugin.

# title: parses the gallery page for a title. This will be the folder name of the output gallery.

# redirect: if the links in the gallery page go to an html instead of an image, use this to parse the gallery page.
redirect = r'href=[\"\'](http://gogoimage.org/img-\S+?\.html)[\"\']'

# direct_links: if redirect is non-empty, this parses each redirect page for a single image. Otherwise, this parses the gallery page for all images.
direct_links = r"src='(http://gogoimage.org/upload/big/.+?)' alt='image'"

# same_filename (default=False): if True, uses filename specified on remote link. Otherwise, creates own filename with incremental index.

0 comments on commit 33c4f13

Please sign in to comment.