Screen Scraping Question

jeffbg123 jeffbg123 at gmail.com
Thu Jul 12 15:01:30 CEST 2007


On Jul 11, 10:31 pm, Dan Stromberg - Datallegro
<dstromb... at datallegro.com> wrote:
> On Wed, 11 Jul 2007 12:45:21 +0000, 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
> > to locate? It is a math based game, so I just have to check what
> > number, 1-9, appears in the center of the flash game. Is there an
> > easier method to do this?
>
> > Thanks
>
> > -Jeff
>
> That sounds like an OCR problem, unless the numbers are so consistently
> rendered that you can just store copies of all 9 (I'd pick a non-lossy
> format) and compare.

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




More information about the Python-list mailing list