• low

    I am trying to make a script that caches websites so I can easily scrape data without have to use proxies (I scrape enough to the point where my traffic would get blocked). My first step is using urllib2 to get the page source:

    cc = urllib2.urlopen(args.site)
    source = cc.read()
    

    Once I have the page source, I need to look through the source code to find any CSS files that are linked relatively to the site. The two tags I would be looking for are <link, href=, and stylesheet. The "rel" is where the CSS is relatively linked, the stylesheet proves that the file is CSS, and directly after the hyper-refrence (href) is the name of the css file in quotes that I need.
    An example;

    <link rel="stylesheet" type="text/css" href="main.css" />
    

    How could I get this information?
    edit: I need to pick this css file out of all the HTML code that the webpage has.

    posted in Pythonista read more
  • low

    i'm pretty sure that numba is not created in raw python, therefor it cannot be used with pythonista, especially if you are downloading it using stash.

    posted in Pythonista read more
  • low

    I'm not sure if the forum is glitching, but I think you posted this 3 times. Please don't spam, and goodluck making your app!

    posted in Pythonista read more
  • low

    Make sure that stash has the ability to overwrite the existing version. Make sure stash is updating the correct directory, and then maybe rename the existing version or delete it.

    posted in Pythonista read more
  • low

    Many people are buying this app expecting pandas, I think there might need to be a warning that pythonista can mostly only support pure python scripts and modules... because a lot of people can't seem to grasp that.

    posted in Pythonista read more
  • low

    You can upload the files to icloud and then transfer them to google drive. See this article here for an example on how to do this.

    Edit: This will only work if you have a mac hooked up to icloud. To do this straight from your phone you can:

    1. Save the file to icloud straight from pythonista
    2. Make sure you have the google drive app, and that you are logged in
    3. Go to icloud and click the share button (box with the arrow pointing up)
    4. Click the "drive" icon, and your file will be stored on your drive

    I hope this helps, let me know if you have any further questions (@coreos @AndyCWB)

    posted in Editorial read more
  • low

    Are you trying to fill passwords on mobile apps, or on websites?

    posted in Pythonista read more
  • low

    If I wanted to share a .pyui file that I created on pythonista, how would I do that? Also, how would I be able to download other .pyui files and use them?

    posted in Pythonista read more
  • low

    Hello everyone, before we start, I am very new to python & I have also just purchased pythonista, so I'm sorry if this question is obvious but I couldn't find a previous answer for it. With objc_util, you can do things like change the screen brightness which is changing a setting. I was wondering if it is at all possible to do this with colors, because I want to try to mess with the inverted colors settings. Once again, sorry if this is an obvious or stupid question, but thanks for any help that you can give!

    posted in Pythonista read more

Internal error.

Oops! Looks like something went wrong!