nichtparasoup is a web-based hackspaces entertainment system. It continuously displays random images from Reddit & Pr0gramm in your web-browser. Image sources are highly customizable.
some crawlwe use global variables sto store the progress or the paging ...
this is nasty, so we want the crawlers in seperate classes and instanceable with the (start) URI ....
i tried to wrap the switch statement to catch the "escape"-hotkey when the gallery is active.
the gallery state ("6") is reset (to "0") somewhere before the contents of the file "feel_hotkeys.js" is processed.
when adding "โฐ" to "root.html" (currently replaced with "x") build.sh crashes:
Traceback (most recent call last):
File "/home/gpunktschmitz/Apps/nichtparasoup/templates_raw/_lib/buildHTMLfromParts.py", line 84, in
print("\n".join(str(part) for part in doc_string_parts_clean))
File "/home/gpunktschmitz/Apps/nichtparasoup/templates_raw/_lib/buildHTMLfromParts.py", line 84, in
print("\n".join(str(part) for part in doc_string_parts_clean))
UnicodeEncodeError: 'ascii' codec can't encode character u'\u2630' in position 94: ordinal not in range(128)
every image should be part of a gallery. when one image is clicked the state should be paused (no new images) and a modal gallery (maybe css3-only) should be started.
The basic idea of a plugin is to 'plug it in' and have the framework figuring out the rest. When creating a new plugin it is not enough to simply create a new crawler file in crawler/ but you actually need to touch nichtparasoup.py to import the new crawler AND define the url in this file plus the logic how to handle tags.
The plugins themselve should provide have logic to return a crawler with the correct urls and optional parameters like search tags.
in order to be aware of any new content appearing in the crawled sites the crawlers should forget about their lasturls after ~3 hours so we get that content as well
80 per cent max-height (which should be 90 per cent) broken
max-width (see 1)
speed (itself)
speed (initial)
halt/continue (nonfunctional)
and everything else
when pressing hotkey "j" for the next image, it may happen, that two images are loaded.
possible issue: the internal automated reload process is not canceled and the timer is not reset.
If you reload the Page, all settings are set to default, which is kinda ugly if you click on the image source the lazy way (without middle click or command click) and get back to nichtparasoup. I than must click on "play in background" again because of a crazy Tab configuration.
instead they toggle between 9 and 10, they should be raising an exception or something once they reached the end of the last page to show that there is nothing to gather anymore?
soup.io frontpage is mostly pr0n, crawling your friend feed (assuming your friend circle does not consist of a bunch of perverts) may result in higher quality funny pictures.