Re: Does Python allow variables to be passed into function for dynamic screen scraping?

2015-11-28 Thread ryguy7272
st don't. They have an official API for > downloading content, use it. There's even a Python library for downloading > from Wikipedia and other Mediawiki sites: > > https://www.mediawiki.org/wiki/Manual:Pywikibot > > Wikimedia does a fantastic job, for free, and automate

Re: Does Python allow variables to be passed into function for dynamic screen scraping?

2015-11-28 Thread Steven D'Aprano
brary for downloading from Wikipedia and other Mediawiki sites: https://www.mediawiki.org/wiki/Manual:Pywikibot Wikimedia does a fantastic job, for free, and automated screen-scraping hurts their ability to provide that service. It is rude and anti-social. Please don't do it. -- Steven --

Re: Does Python allow variables to be passed into function for dynamic screen scraping?

2015-11-28 Thread Laura Creighton
In a message of Sat, 28 Nov 2015 14:37:26 -0800, ryguy7272 writes: >On Saturday, November 28, 2015 at 5:28:55 PM UTC-5, Laura Creighton wrote: >> In a message of Sat, 28 Nov 2015 14:03:10 -0800, ryguy7272 writes: >> >I'm looking at this URL. >> >https://en.wikipedia.org/wiki/Wikipedia:Unusual_place

Re: Does Python allow variables to be passed into function for dynamic screen scraping?

2015-11-28 Thread ryguy7272
On Saturday, November 28, 2015 at 5:28:55 PM UTC-5, Laura Creighton wrote: > In a message of Sat, 28 Nov 2015 14:03:10 -0800, ryguy7272 writes: > >I'm looking at this URL. > >https://en.wikipedia.org/wiki/Wikipedia:Unusual_place_names > > > >If I hit F12 I can see tags such as these: > > > >And so

Re: Does Python allow variables to be passed into function for dynamic screen scraping?

2015-11-28 Thread Laura Creighton
In a message of Sat, 28 Nov 2015 14:03:10 -0800, ryguy7272 writes: >I'm looking at this URL. >https://en.wikipedia.org/wiki/Wikipedia:Unusual_place_names > >If I hit F12 I can see tags such as these: >And so on and so forth. > >I'm wondering if someone can share a script, or a function, that will

Does Python allow variables to be passed into function for dynamic screen scraping?

2015-11-28 Thread ryguy7272
I'm looking at this URL. https://en.wikipedia.org/wiki/Wikipedia:Unusual_place_names If I hit F12 I can see tags such as these: https://en.wikipedia.org/wiki/Wikipedia:Unusual_place_names"; r = requests.get(url) soup=BeautifulSoup(r.content,"lxml") #set up a function to parse the "soup" for each

Re: screen scraping

2009-06-01 Thread David
explicittly for screen scraping? Thanks. How about this: http://iwiwdsmp.blogspot.com/2007/02/how-to-use-python-and-beautiful-soup-to.html -- Powered by Gentoo GNU/Linux http://linuxcrazy.com -- http://mail.python.org/mailman/listinfo/python-list

screen scraping

2009-06-01 Thread ubuntu . exe
Hello, does anybody have a simple tutorial for screen scrapping? I want to extract IP addresses from particular web page, reading documentation for a couple of days and writing some really simple scripts, but cant get it to work. Did anybody see any manual explicittly for screen scraping

RE: screen scraping with Python?

2009-04-28 Thread Jean-Paul Calderone
On Tue, 28 Apr 2009 16:57:18 +0530, "Meenakshi, Arun Kumar" wrote: David, Thanks a ton for your swift reply. I will be more happy, if you could direct me with right API with which I can walk further. Twisted includes a vt102 API along with an in-memory emulator implementing many

RE: screen scraping with Python?

2009-04-28 Thread Meenakshi, Arun Kumar
: Tuesday, April 28, 2009 4:52 PM To: Meenakshi, Arun Kumar Cc: python-list@python.org Subject: Re: screen scraping with Python? On Mon, 27 Apr 2009 12:28:31 +0530, "Meenakshi, Arun Kumar" wrote: > Hi Friends, > > Please let me know whether VT10

Re: screen scraping with Python?

2009-04-28 Thread David Lyon
On Mon, 27 Apr 2009 12:28:31 +0530, "Meenakshi, Arun Kumar" wrote: > Hi Friends, > > Please let me know whether VT100 (Screen scrapping) > emulation is possible or not. If screen scrapping / VT100 emulation is > possible, please let me know how to do it. I will be happier, if you ca

screen scraping with Python?

2009-04-28 Thread Meenakshi, Arun Kumar
Hi Friends, Please let me know whether VT100 (Screen scrapping) emulation is possible or not. If screen scrapping / VT100 emulation is possible, please let me know how to do it. I will be happier, if you can provide me steps and sample codes. I am a beginner in python. So kindly help m

Re: How to Use ANSI for Remote Screen Scraping?

2008-11-02 Thread Henry Chang
After playing with this, it seems the key is to pass objects to the ANSI terminal via the following: import ANSI crt = ANSI.ANSI(25,80) head_output = ["line 1 ABCDEFGHIJKL", "line 2 ABCDEFGHIJKL", "line 3 ABCDEFGHIJKL", "line 4 ABCDEFGHIJKL", "line 5 ABCDEFGHIJKL", "

Re: How to Use ANSI for Remote Screen Scraping?

2008-11-02 Thread Henry Chang
I am taking a step back, and just get something simple working with ANSI. The following code works (creates the ANSI terminal object, and inserts a few characters, and scrap the characters back). import ANSI crt = ANSI.ANSI(25,80) crt.insert_abs(2,2,"a") crt.insert_abs(3,10,"b") crt.insert_abs(

How to Use ANSI for Remote Screen Scraping?

2008-11-01 Thread Henry Chang
Using the below script, I can use pexpect to correctly output the entire remote terminal content to screen. At this point, I am running into difficulty to scrap the screen, for the screen elements that I want. (Say: the screen region from the complete 3rd line to the 8th line.) I believe I need t

Re: python screen scraping/parsing

2008-06-14 Thread Larry Bates
Dan Stromberg wrote: BeautifulSoup is a pretty nice python module for screen scraping (not necessarily well formed) web pages. On Fri, 13 Jun 2008 11:10:09 -0700, bruce wrote: Hi... got a short test app that i'm playing with. the goal is to get data off the page in question. basical

Re: python screen scraping/parsing

2008-06-13 Thread Paul Boddie
On 13 Jun, 23:09, "bruce" <[EMAIL PROTECTED]> wrote: > > Thanks for the reply. Came to the same conclusion a few minutes before I saw > your email. > > Another question: > > tr=d.xpath(foo) > > gets me an array of nodes. > > is there a way for me to then iterate through the node tr[x] to see if a >

RE: python screen scraping/parsing

2008-06-13 Thread bruce
PM To: python-list@python.org Subject: Re: python screen scraping/parsing On 13 Jun, 20:10, "bruce" <[EMAIL PROTECTED]> wrote: > > url ="http://www.pricegrabber.com/rating_summary.php/page=1"; [...] > tr = > "/html/body/[EMAIL PROTECTED]&#x

Re: python screen scraping/parsing

2008-06-13 Thread Paul Boddie
On 13 Jun, 20:10, "bruce" <[EMAIL PROTECTED]> wrote: > > url ="http://www.pricegrabber.com/rating_summary.php/page=1"; [...] > tr = > "/html/body/[EMAIL PROTECTED]'pgSiteContainer']/[EMAIL > PROTECTED]'pgPageContent']/table[2]/tbo > dy/tr[4]" > > tr_=d.xpath(tr) [...] > my issu

Re: python screen scraping/parsing

2008-06-13 Thread Dan Stromberg
BeautifulSoup is a pretty nice python module for screen scraping (not necessarily well formed) web pages. On Fri, 13 Jun 2008 11:10:09 -0700, bruce wrote: > Hi... > > got a short test app that i'm playing with. the goal is to get data off > the page in question. > >

python screen scraping/parsing

2008-06-13 Thread bruce
Hi... got a short test app that i'm playing with. the goal is to get data off the page in question. basically, i should be able to get a list of "tr" nodes, and then to iterate/parse them. i'm missing something, as i think i can get a single node, but i can't figure out how to display the content

Re: Screen Scraping Question

2007-07-14 Thread Yu-Xi Lim
jeffbg123 wrote: > The numbers are always rendered the same. So I don't know if OCR is a > necessary step. > > Also, what if I just got the data from the packets? Any disadvantages > to that? Any good python packet capturing libraries? > > Thanks > Packet capture is probably a bad idea for two

Re: Screen Scraping Question

2007-07-12 Thread Raul Laansoo
Ühel kenal päeval, K, 2007-07-11 kell 12:45, kirjutas jeffbg123: > Hey, > > I am trying to make a bot for a flash game using python. However I am > having some trouble with a screen scraping strategy. Is there an > accepted way to compare a full screenshot with the image that I w

Re: Screen Scraping Question

2007-07-12 Thread jeffbg123
On Jul 11, 10:31 pm, Dan Stromberg - Datallegro <[EMAIL PROTECTED]> wrote: > On Wed, 11 Jul 2007 12:45:21 +, jeffbg123 wrote: > > Hey, > > > I am trying to make a bot for a flash game using python. However I am > > having some trouble with a screen scraping stra

Re: Screen Scraping Question

2007-07-11 Thread Dan Stromberg - Datallegro
On Wed, 11 Jul 2007 12:45:21 +, jeffbg123 wrote: > Hey, > > I am trying to make a bot for a flash game using python. However I am > having some trouble with a screen scraping strategy. Is there an > accepted way to compare a full screenshot with the image that I want >

Screen Scraping Question

2007-07-11 Thread jeffbg123
Hey, I am trying to make a bot for a flash game using python. However I am having some trouble with a screen scraping strategy. Is there an accepted way to compare a full screenshot with the image that I want to locate? It is a math based game, so I just have to check what number, 1-9, appears in

Re: stealth screen scraping with python?

2007-05-12 Thread Thomas Wittek
[EMAIL PROTECTED] schrieb: > I am screen scraping a large volume of data from Yahoo Finance each > evening, and parsing with Beautiful Soup. > > I was wondering if anyone could give me some pointers on how to make > it less obvious to Yahoo that this is what I am doing, as I f

Re: stealth screen scraping with python?

2007-05-11 Thread Steven D'Aprano
On Fri, 11 May 2007 12:32:55 -0700, different.engine wrote: > Folks: > > I am screen scraping a large volume of data from Yahoo Finance each > evening, and parsing with Beautiful Soup. > > I was wondering if anyone could give me some pointers on how to make > it less obvio

Re: stealth screen scraping with python?

2007-05-11 Thread kyosohma
On May 11, 2:32 pm, [EMAIL PROTECTED] wrote: > Folks: > > I am screen scraping a large volume of data from Yahoo Finance each > evening, and parsing with Beautiful Soup. > > I was wondering if anyone could give me some pointers on how to make > it less obvious to Yahoo that th

Re: stealth screen scraping with python?

2007-05-11 Thread Dotan Cohen
On 11 May 2007 12:32:55 -0700, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > Folks: > > I am screen scraping a large volume of data from Yahoo Finance each > evening, and parsing with Beautiful Soup. > > I was wondering if anyone could give me some pointers on how to m

stealth screen scraping with python?

2007-05-11 Thread different . engine
Folks: I am screen scraping a large volume of data from Yahoo Finance each evening, and parsing with Beautiful Soup. I was wondering if anyone could give me some pointers on how to make it less obvious to Yahoo that this is what I am doing, as I fear that they probably monitor for this type of

Re: newbie: HTTPS screen scraping

2007-04-21 Thread John Nagle
[EMAIL PROTECTED] wrote: > Hi, >Can anyone help me out here. I would like to authenticate myself to a > website which uses HTTPS and then after authentication, I would like to > get the contents of the webpage. How can this be done using python. > I have tried urllib and urllib2 but it has no

Re: newbie: HTTPS screen scraping

2007-04-21 Thread ici
On Apr 21, 11:38 am, [EMAIL PROTECTED] wrote: > Hi, > Can anyone help me out here. I would like to authenticate myself to > a website which uses HTTPS and then after authentication, I would like > to get the contents of the webpage. How can this be done using python. > I have tried urllib and u

newbie: HTTPS screen scraping

2007-04-21 Thread user
Hi, Can anyone help me out here. I would like to authenticate myself to a website which uses HTTPS and then after authentication, I would like to get the contents of the webpage. How can this be done using python. I have tried urllib and urllib2 but it has not solved my problem. TIA /varun -

Re: Screen Scraping for Modern Applications?

2006-06-12 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, <[EMAIL PROTECTED]> wrote: . . . >Scrape means simply scraping pixel colors from locations on the screen. >I'll worry about assembling it into meaningful information. > >Previously, I used Java,

Re: Screen Scraping for Modern Applications?

2006-06-11 Thread Daniel Nogradi
> > Scrape means simply scraping pixel colors from locations on the screen. > > I'll worry about assembling it into meaningful information. > > import ImageGrab > im = ImageGrab.grab() > v = im.getpixel((x, y)) > > requires: > > http://www.pythonware.com/products/pil/ > > ## #

Re: Screen Scraping for Modern Applications?

2006-06-11 Thread Fredrik Lundh
[EMAIL PROTECTED] wrote: > Scrape means simply scraping pixel colors from locations on the screen. > I'll worry about assembling it into meaningful information. import ImageGrab im = ImageGrab.grab() v = im.getpixel((x, y)) requires: http://www.pythonware.com/products/pil/

Re: Screen Scraping for Modern Applications?

2006-06-11 Thread Paul McGuire
<[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > > > Scrape means simply scraping pixel colors from locations on the screen. > I'll worry about assembling it into meaningful information. > I've used pywinauto to interact with a Flash animation panel, running within an Internet Explore

Re: Screen Scraping for Modern Applications?

2006-06-11 Thread ljr2600
Cameron Laird wrote: > In article <[EMAIL PROTECTED]>, > <[EMAIL PROTECTED]> wrote: > . > . > . > >For a side project I'm working on I need to be able to scrape a modern > >computer desktop. Is there any basic material already avai

Re: Screen Scraping for Modern Applications?

2006-06-11 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, <[EMAIL PROTECTED]> wrote: . . . >For a side project I'm working on I need to be able to scrape a modern >computer desktop. Is there any basic material already available to do >this? I'd rather

Re: Screen Scraping for Modern Applications?

2006-06-11 Thread KenAggie
I just learned about a python library called BeautifulSoup in a thread responding to my Southwest Airlines script that I wrote and posted on the Python cookbook web site. I wrote my script using the provided HTMLParser class. BeautifulSoup could have saved me some time perhaps. Take a look. Feel fr

Screen Scraping for Modern Applications?

2006-06-11 Thread ljr2600
Hello, I'm very new to python and still familiarizing myself with the language, sorry if the post seems moronic or simple. For a side project I'm working on I need to be able to scrape a modern computer desktop. Is there any basic material already available to do this? I'd rather not need to writ

Re: XPath/Screen Scraping Gurus..

2006-04-17 Thread Steve Horsley
Peter Hansen wrote: > bruce wrote: >> I'm not that familiar with Pythin, but I wasn wondering if there are any >> XPath/Python Gurus that I might be able to talk to regarding screen >> scraping >> applications... > > Since you mention XPath, it seems likel

Re: XPath/Screen Scraping Gurus..

2006-04-11 Thread John J. Lee
Peter Hansen <[EMAIL PROTECTED]> writes: [...] > Screen-scraping refers, I believe, to the process of identifying what is > onscreen in GUI programs, possibly even at the pixel level, and trying > to translate that back into a higher level model (e.g. text in fields) > o

Re: XPath/Screen Scraping Gurus..

2006-04-11 Thread John J. Lee
"bruce" <[EMAIL PROTECTED]> writes: > I'm not that familiar with Pythin, but I wasn wondering if there are any > XPath/Python Gurus that I might be able to talk to regarding screen scraping > applications... Can you be more specific? John -- http://mail.pyth

Re: XPath/Screen Scraping Gurus..

2006-04-11 Thread Peter Hansen
bruce wrote: > I'm not that familiar with Pythin, but I wasn wondering if there are any > XPath/Python Gurus that I might be able to talk to regarding screen scraping > applications... Since you mention XPath, it seems likely you are really interested in *web-scraping*. Screen-s

XPath/Screen Scraping Gurus..

2006-04-11 Thread bruce
Hi.. I'm not that familiar with Pythin, but I wasn wondering if there are any XPath/Python Gurus that I might be able to talk to regarding screen scraping applications... Thanks -Bruce [EMAIL PROTECTED] -- http://mail.python.org/mailman/listinfo/python-list