Giter Site home page Giter Site logo

k4cg / nichtparasoup Goto Github PK

View Code? Open in Web Editor NEW
40.0 7.0 11.0 7.45 MB

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.

Home Page: https://pypi.org/project/nichtparasoup/

JavaScript 6.90% Python 75.89% Shell 0.19% Mako 2.87% CSS 1.85% HTML 12.30%
image-crawler python reddit instagram pr0gramm entertainment

nichtparasoup's Introduction

Project: nichtparasoup

nichtparasoup is a web-based hackspaces entertainment system.
It continuously displays random images from Instagram, Reddit & Pr0gramm in your web-browser.
Image sources are highly customizable.


This project includes:

nichtparasoup's People

Contributors

c0rby avatar dependabot[bot] avatar faheus avatar gpunktschmitz avatar jkowalleck avatar jnkowa-gfk avatar lassulus avatar noqqe avatar omgwtflaserguns avatar poschi3 avatar senden9 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

nichtparasoup's Issues

imgur crawler broken?

the imgur crawler seams to be broken.
does not find images, finds whole pages instead.

reset reload timer on manual reload

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.

Store settings in a cookie(?)

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.

Would be nice if this happens automagically.

pr0gram crawler broken?

tested the pr0gram crawler today, seams to be broken.
can someone confirm?

before rewriting it, wait for my go. i am currently writing some convenience methods for the crawlers ;-)

bundler not working

when running the bundler the resulting template is not working/no images are floating in ...

bundler-not-working

Remove imgur.com image Provider

Reasons because imgur provider is crap

  • we use /random, so image quality is bad
  • we get more proper results (e.g. better images) from reddit located in imgur
  • the scraper is pretty much a mess, we only get 1 image by request
  • they would have a api but need some developer access with callback urls and all this weird oauth stuff

at the end the provider is useless. we get better, more efficient and even parts of the same urls out of reddit.

SoupIO Crawler may be broken.

Instance with enabled soupio does not start, does not log.
When SoupIO was disabled, it works again.

Will verify soon.

feature: UI add boss key

add a boss key [b] to the UI.
when it is pressed, every image is hidden and the loader stopps

when pressed again: images are shown, loader starts again ...

Plugins which are not ...

... Plugins ๐Ÿ˜‰

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.

Besides that ๐Ÿ‘

character "☰" in "root.html" causes build to crash

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)

feature: gallery

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.

hotkey space does not toggle status/hotkey bar

the hotkey behavoir of the "space" key changed. i want the old one back.

desired status:

  • as a user i want to see the hotkey bar (bottom), when i press the "space" key.
  • as a user i want to see the status bar (top), when i press the "space" key.

current status:

  • on key down "space" nothing happens

UI: annoyence fix > image source link should be a block

currently it is hard to click on an image source, since it needs moving the cursor to the source text.

to have this fixed, the css property display of the <a> should be block.
this will put the a as wide as possible.

i hope to get this fixed today.

feel_hotkeys.js - hotkey not reliable

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.

put the crawlers in classes

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 ....

review the whole UI-js

the current UI has many bugs and is not very easy to maintain.
Todo

  • review the JS and make maintenance easier.
  • image laoder fix: just one image at a time (currently multiple are loaded sometimes.)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.