MCPcopy Create free account

hub / github.com/cdipaolo/hub-db / functions

Functions27 in github.com/cdipaolo/hub-db

↓ 3 callersFunctionGetAlbumFromURI
GetAlbumFromURI takes in an album page URL ie. http://www.pornhub.com/album/66212 and returns a corresponding *model.Album for that page
crawl/page.go:92
↓ 3 callersFunctionGetImageFromURI
GetImageFromURI takes in a URI for an image page ie. http://www.pornhub.com/photo/540124 and returns a corresponding &model.Image struct for that page
crawl/page.go:175
↓ 1 callersFunctionCrawlPornHub
CrawlPornHub crawls pages from pornhub for images, starting at 'start' (inclusive) and ending at 'stop' (exclusive). Pages are dumped to the filepath
server.go:37
↓ 1 callersFunctionGet
* Currently only need GET but this can be extended easily */ Get takes in a HandlerFunc and makes it only accept GET requests
wrapper.go:28
↓ 1 callersFunctionGetBaseURIAllCategoriesForPage
(page uint64)
crawl/page.go:46
↓ 1 callersFunctionHTTPHandlerWithMethod
HTTPHandlerWithMethod takes in a handler func and wraps it so only requests with the specified method (POST, GET, etc) will go through to the handler.
wrapper.go:11
↓ 1 callersFunctionParseConfigFromFile
ParseConfigFromFile takes the passed config file path and parses the config params from the file located there
config.go:63
↓ 1 callersFunctiongetCommentFromSelection
getCommentFromSelection takes in a goquery selection and returns a corresponding model.Comment struct filled with information about the comment. Becau
crawl/page.go:255
FunctionGetBasePageByPageNumber
GetBasePageByPageNumber takes in a page number and returns a BasePage struct (only descenced down into the album struct, not individual images) corres
crawl/page.go:55
FunctionHandleStatus
(r http.ResponseWriter, req *http.Request)
handler.go:13
FunctionTestGetAlbumFromURIShouldPass1
(t *testing.T)
crawl/page_test.go:54
FunctionTestGetAlbumFromURIShouldPass2
(t *testing.T)
crawl/page_test.go:70
FunctionTestGetImageFromURIShouldPass1
(t *testing.T)
crawl/page_test.go:24
FunctionTestGetImageFromURIShouldPass2
(t *testing.T)
crawl/page_test.go:41
Functioninit
()
server.go:26
Functioninit
init takes in the config path from the command line flags
config.go:56
Functionmain
()
server.go:65
Methodmapper
mapper the map step takes in an image json object and maps it to comment information, holding onto information about the origi
data/process/comments.py:18
Methodmapper
mapper the map step splits images from their albums, storing the segment, album_id, and album_title for use later and yielding
data/process/images.py:21
Methodmapper
mapper the map step takes each album from the page, finds it's album_id from the URL scheme and saves it, and maps each image
data/process/albums.py:19
Methodmapper
mapper the map step takes in an album and maps it to a reduced format comprised of the tag and all tags in the same al
data/process/tag_frequencies.py:17
Methodmapper
mapper the map step takes in an album and maps it to a reduced format comprised of the tag and all tags in the same al
data/process/tags.py:18
Methodreducer
reducer the reduce step just passes all map output to the OUTPUT as a json object
data/process/comments.py:36
Methodreducer
reducer the reduce step just passes all map output to the OUTPUT as a json object
data/process/images.py:41
Methodreducer
reducer the reduce step just passes all map output to the OUTPUT as a json object
data/process/albums.py:39
Methodreducer
reducer the reduce step takes all the tags and returns a key (tag) and the number of times the tag has been seen
data/process/tag_frequencies.py:31
Methodreducer
reducer the reduce step takes all the tags and returns a key (tag) and an array of 2-tuples of tags seen with the key
data/process/tags.py:33