omz:forum

    • Register
    • Login
    • Search
    • Recent
    • Popular
    1. Home
    2. low
    3. Topics

    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 3
    • Posts 9
    • Best 0
    • Controversial 0
    • Groups 0

    Topics created by low

    • low

      Finding CSS files inside HTML source
      Pythonista • regex python 2 • • low

      2
      0
      Votes
      2
      Posts
      1868
      Views

      kristof_be

      I would personally use Requests and BeautifulSoup (both modules are included by default with Pythonista).

      Furthermore, I would set up the HTTP request to use a modified User-Agent value, in order to hide that you're running this from a script, and pose as a regular web browser (note that this is not foolproof, but it helps).

      If you only need the links to the CSS, you can instruct BeautifulSoup to parse only to links, thus speeding up the process, by using the SoupStrainer class (more info here).

      Hope this helps.

    • low

      Sharing .pyui files?
      Pythonista • github pyui sharing • • low

      3
      0
      Votes
      3
      Posts
      2916
      Views

      cvp

      @low Import a .pyui file is also easy:
      Share it where you have it, f.i. in Apple Files app
      Run Pythonista script
      Import File

    • low

      inverting colors with pythonista?
      Pythonista • settings colors objcutil • • low

      2
      0
      Votes
      2
      Posts
      1902
      Views

      cvp

      @low read here