Questions tagged [spynner]

Spynner is a stateful programmatic web browser module for Python with Javascript/AJAX support based upon the QtWebKit framework.

Homepage: https://github.com/makinacorpus/spynner

70 questions
1
vote
1 answer

How can I put a webkit PyQt window as wallpaper on my desktop programmatically?

I try to put google calendar in a webkit window as wallpaper. The python working script looks like : #!/usr/bin/python2 -u # -*- coding: iso8859-15 -*- display_UI = True email = "xxxx@gmail.com" passwd = "xxxxxxxx" useragent = "Mozilla/5.0 (X11;…
Gilles Quénot
  • 173,512
  • 41
  • 224
  • 223
1
vote
1 answer

Can't figure out which dependencies package spynner 1.11 python 2.7.2 module needs on Ubuntu 11.10

I try to install dependencies of spynner python module, but I get : $ python -c 'import spynner' Traceback (most recent call last): File "", line 1, in File…
Gilles Quénot
  • 173,512
  • 41
  • 224
  • 223
0
votes
1 answer

QApplication in threads

I'm using a module named spynner with python. spynner runs on a QApplication instance. I need to run functions using spynner asynchronously. I have tried calling these functions in different threads, using something…
Ozgur Akcali
  • 5,264
  • 2
  • 31
  • 49
0
votes
1 answer

Xvfb instance for multiple processes

I am developing an application on one of the servers of webfaction. I have a python class with two functions defined in it. Each function uses a spynner.Browser() object, which requires an X server running. I am running Xvfb for this purpose. Both…
Ozgur Akcali
  • 5,264
  • 2
  • 31
  • 49
0
votes
1 answer

Fill textarea using spynner

Is it possible to fill the textarea using spynner? How can I do it? I try this: sb.fill("textarea[name=NAME]","TEXT") But it doesn't work. Please, help me.
Simon
  • 3
  • 4
0
votes
2 answers

Click Javascript button python, spynner

I want to click button without name using a spynner. The button looks like this:
  • Save Changes
  • Have you any idea?…
    Simon
    • 3
    • 4
    0
    votes
    1 answer

    Using set_http_authentication_callback(self, callback)

    I'm using a spynner package fo Python and when I try to load a page like this: sb = spynner.Browser() sb.load(URL) I have an error: Traceback (most recent call last): File "C:\Python27\lib\site-packages\spynner-1.10-py2.7.egg\spynner\browser.py",…
    Simon
    • 3
    • 4
    0
    votes
    1 answer

    Why do I get an Illegal Redirect URI with Spotify when using a headless browser vs Chrome?

    I'm trying to automate the creation of a token with the Spotify API, however the headless browsers I try to use always error at 'Invalid redirect_uri'. Currently I'm trying to use Spynner and Ghost.py, but both end up at the same problem point. What…
    PM8K
    • 21
    • 4
    0
    votes
    1 answer

    How to get a Python 2.7 package (Spynner) to work with Python 3?

    The Spynner docs says it supports Python >=26, but during installation I get the following error: (spynner) spynner$ pip3 install spynner Requirement already satisfied (use --upgrade to upgrade): spynner in…
    Tom Brock
    • 920
    • 7
    • 29
    0
    votes
    1 answer

    Install spynner in python on Windows 7

    I want to install spynner in python 2.7.9, on windows 7. I have tried using 'pip' but it is giving error. Traceback: Traceback (most recent call last): File "", line 17, in File…
    paramvir
    • 276
    • 4
    • 22
    0
    votes
    1 answer

    Use Python Spynner to download a file with a JavaScript doPostBack link

    I am having trouble getting Python Spynner to download a file from an ASP webpage that has an anchor to href="javascript:__doPostBack('ProjectionBoard1$cmdCSV','')". Example "Export Data" Is there an easy way to do this? I have tried reverse…
    genepool99
    • 130
    • 1
    • 10
    0
    votes
    1 answer

    web browser created by spynner not responding

    I am trying to use spynner for web scraping ... below I used www.google.com as an example .... I want to automatically search for "Barack Obama" using spynner ... However, the web browser created by spynner keeps not responding ... and the search…
    steady_progress
    • 3,311
    • 10
    • 31
    • 62
    0
    votes
    1 answer

    "ImportError: No module named PyQt42

    I am trying to import spynner into my python program (import spynner) ... when I run the script, I receive the following error message: Traceback (most recent call last): File "C:\Users\Michael\Desktop\webscraper.py", line 2, in
    steady_progress
    • 3,311
    • 10
    • 31
    • 62
    0
    votes
    0 answers

    Automate acceptance of license terms in order to download file

    I need to download a file, but in order to do so, I have to accept license agreement. For example, from http://www.oracle.com/technetwork/java/javase/downloads/java-archive-javase8-2177648.html, I would like to download Linux x86 146.84 MB …
    Shadowmak
    • 111
    • 13
    0
    votes
    2 answers

    Spynner - accessing DOM

    I've just learned that there is a difference between a browser's "view source" and "inspect element". When I use "inspect" in firefox on a specific webpage I get the following: ...
    LeMarq
    • 65
    • 6