Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>I think you should first ask yourself why you want to use Greasemonkey for your particular problem. Greasemonkey was developed as a way to modify one's browsing experience -- not as a web spider. While you might be able to get Greasemonkey to do this using GM_setValue, I think you will find your solution to be kludgy and hard to develop. That, and it will require many manual steps (like opening all of those tabs, clearing the Greasemonkey variables between runs of your script, etc).</p> <p>Does anything you are doing require the JavaScript on the page to be executed? If so, you may want to consider using Perl and <a href="http://search.cpan.org/~sprout/WWW-Mechanize-Plugin-JavaScript-0.007a/lib/WWW/Mechanize/Plugin/JavaScript.pm" rel="nofollow noreferrer">WWW::Mechanize::Plugin::JavaScript</a>. Otherwise, I would recommend that you do all of this in a simple Python script. You will want to take a look at the <a href="http://docs.python.org/library/urllib2.html?highlight=urllib2#module-urllib2" rel="nofollow noreferrer">urllib2</a> module. For example, take a look at the following code (note that it uses cookielib to support cookies, which you will most likely need if your script requires you to be logged into a site):</p> <pre><code>import urllib2 import cookielib opener = urllib2.build_opener(urllib2.HTTPCookieProcessor(cookielib.CookieJar())) response = opener.open("http://twitter.com/someguy") responseText = response.read() </code></pre> <p>Then you can do all of the processing you want using regular expressions.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload