Giter Club home page Giter Club logo

dankbot's Introduction

Hi there ๐Ÿ‘‹

Octo Ring logo
previousrandomnext
check out other GitHub profiles in the Octo Ring

dankbot's People

Contributors

arichards611 avatar ckohles avatar emenym avatar gelstudios avatar jrgabler avatar memeny-datto avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

dankbot's Issues

imgur truncated gif handling

imgur truncates gifs over 10mb(?) and returns a still image.

might want to get the next image if we can reliably detect this.

google image hax

Image search api is severely rate limited. Api can be avoided altogether by sending a GET and parsing the reply with lxml.

curl -X GET -d @$i https://www.google.com/search?hl=en&tbm=isch&q=robot --header "User-Agent:Chrome/51"

unf_ck this

2016-04-06T15:07:12.898787+00:00 heroku[router]: at=info method=POST path="/" host=imgur-hipchat-dev.herokuapp.com request_id=b322b7f3-0f00-4cc2-b9de-8419e4c715a0 fwd="52.71.4.137" dyno=web.1 connect=1ms service=197ms status=500 bytes=932
2016-04-06T15:07:12.889380+00:00 app[web.1]: [dankBot] [DEBUG] search="$" resource="imgur" No results found.
2016-04-06T15:07:12.900470+00:00 app[web.1]: Traceback (most recent call last):
2016-04-06T15:07:12.900270+00:00 app[web.1]: [dankBot] [DEBUG] search="$" resource="giphy" No results found.
2016-04-06T15:07:12.900473+00:00 app[web.1]:   File "/app/.heroku/python/lib/python2.7/site-packages/bottle.py", line 862, in _handle
2016-04-06T15:07:12.900475+00:00 app[web.1]:     return route.call(**args)
2016-04-06T15:07:12.900476+00:00 app[web.1]:   File "/app/.heroku/python/lib/python2.7/site-packages/bottle.py", line 1732, in wrapper
2016-04-06T15:07:12.900476+00:00 app[web.1]:     rv = callback(*a, **ka)
2016-04-06T15:07:12.900477+00:00 app[web.1]:   File "hipchat.py", line 172, in handle
2016-04-06T15:07:12.900478+00:00 app[web.1]:     message = search_all(search=parsed)
2016-04-06T15:07:12.900478+00:00 app[web.1]:   File "hipchat.py", line 40, in search_all
2016-04-06T15:07:12.900479+00:00 app[web.1]:     message = random.choice(results)
2016-04-06T15:07:12.900480+00:00 app[web.1]:   File "/app/.heroku/python/lib/python2.7/random.py", line 275, in choice
2016-04-06T15:07:12.900481+00:00 app[web.1]:     return seq[int(self.random() * len(seq))]  # raises IndexError if seq is empty
2016-04-06T15:07:12.900481+00:00 app[web.1]: IndexError: list index out of range
2016-04-06T15:07:12.900930+00:00 app[web.1]: 10.43.199.90 - - [06/Apr/2016 15:07:12] "POST / HTTP/1.1" 500 758

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.