Screen Screening Results

I recently asked a client to create a website for their insurance business. As part of this, they want to take some screenshots of the site’s quote screen for one of their suppliers. They asked if they had an API for this, and said that they weren’t, but if they can get data from their engine, they can use it the way they want.

My question is: is it even possible to screen-scan in response to submitting the form to another site? If so, what are the fears to which I must pay attention. Obvious legal / ethical issues, as they have already asked for permission to do what we plan to do.

As an aside, I would rather do any processing in python.

thanks

+3
source share
4 answers

A really good screen scripting library is mechanize , which I think is a clone of the original Perl library. In any case, that combined with the ClientForm module and some additional help from BeautifulSoup, you should be away.

Python, . , mechanize, , urllib2 httplib , mechanize : , ( , , , , API, ).

- BeautifulSoup, lxml.html - .

, Python , .

+5

data urllib.urlopen, POST , , , , , .

, method="GET", URL-, urlopen.

HTML BeautifulSoup.

+2

, ... , , Javascript. Javascript- JS , (, AJAX), ; crowbar, diggstripper ..

Javascript , , , ( JS-) , , JS ..; , . ( ) HTML- , , , , . : , , Javascript-light! -)

0

BeautifulSoup, lxml. , HTML. , , BeautifulSoup, "" HTML , BeautifulSoup ( ). API BeautifulSoup, API- lxml.

Ian Blicking .

BeautifulSoup , Google App Engine - , , Python.

0

Source: https://habr.com/ru/post/1714222/


All Articles