« Return to Thread: interacting with scraped pages?

Re: interacting with scraped pages?

by Stefano Mazzocchi-2 :: Rate this Message:

Reply to Author | View in Thread

=JeffH wrote:
> Stefano Mazzocchi wrote:
>  >
>  > You probably want a greasemonkey script for such page interaction
>  > scripting, not a scraper.
>
> yeah, that's sorta what I thought too, so I wonder if one can do both
> operations via one script, i.e. do the page manipulation things via
> greasemonkey api(s) and the scraping things via piggy bank api(s) from the same
> script?

No. This can't be done because Greasemonkey scripts run inside a special
javascript sandbox that exposes the Greasemonkey APIs while Piggy Bank
scrapers run into another sandbox that exposes the Piggy Bank APIs.
There is no place where the two APIs are exposed at the same time.

--
Stefano Mazzocchi
Digital Libraries Research Group                 Research Scientist
Massachusetts Institute of Technology
E25-131, 77 Massachusetts Ave               skype: stefanomazzocchi
Cambridge, MA  02139-4307, USA         email: stefanom at mit . edu
-------------------------------------------------------------------

_______________________________________________
General mailing list
General@...
http://simile.mit.edu/mailman/listinfo/general

 « Return to Thread: interacting with scraped pages?

LightInTheBox - Buy quality products at wholesale price!