omz:forum

    • Register
    • Login
    • Search
    • Recent
    • Popular
    1. Home
    2. tacomaster26
    3. Posts

    Welcome!

    This is the community forum for my apps Pythonista and Editorial.

    For individual support questions, you can also send an email. If you have a very short question or just want to say hello — I'm @olemoritz on Twitter.


    • Profile
    • Following 0
    • Followers 0
    • Topics 0
    • Posts 4
    • Best 0
    • Controversial 0
    • Groups 0

    Posts made by tacomaster26

    • RE: ScreenShot code

      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
      tacomaster26
      tacomaster26
    • RE: Creating Home Screen Icons

      : ( Any chance this can get fixed?

      posted in Pythonista
      tacomaster26
      tacomaster26
    • RE: Grooveshark downloader - enjoy :)

      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
      tacomaster26
      tacomaster26
    • RE: Grooveshark downloader - enjoy :)

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