• tacomaster26

    If it were possible you would only be able to take a screenshot within Pythonista. My guess is you probably want a screenshot of another app?

    I think you could manually take a screenshot of another app, then copy if off of your clipboard for processing with Pythonista... Not sure how though.

    posted in Pythonista read more
  • tacomaster26

    : ( Any chance this can get fixed?

    posted in Pythonista read more
  • tacomaster26

    So just in case anyone runs across this page, here is the fix. This illustrates ones of the major problems with screen scraping: authors change the structure of their content and it ruins your day.

    Replace Line 204:

    base_snip = re.search(r'window\.GS\.config.+?(\{.+?\});', self.base_html).groups()[0]

    With:

    base_snip = re.search(r'GS\.config.+?(\{.+?\});', self.base_html).groups()[0]

    Notice: the only thing changed was removing "window.". The reason this is happening is that GrooveShark changed the structure of that particular piece of JavaScript so the regex doesn't match anything anymore. The regex searching does not have a "graceful" failure, so it just crashes the whole application without really telling you why: it can't find the string it's looking for!

    Have a stupendous day!
    PS: emailing the author of this post now in hopes he can update on github

    posted in Pythonista read more
  • tacomaster26

    I have an idea... It looks like the error is from Line 204:

    base_snip = re.search(r'window\.GS\.config.+?(\{.+?\});', self.base_html).groups()[0]
    

    Looking into it...

    posted in Pythonista read more

Internal error.

Oops! Looks like something went wrong!