javascript - Get CAPTCHA url from html code using python -
i need captcha url web page:
this part of html code above website has capatcha url:
<span id="recaptcha_image"></span></p><p><label></label><span> <a href="javascript:recaptcha.reload ();" id="recaptcha_reload_btn"></a> </span></p>
but can't because captcha url looks javascript code
javascript:recaptcha.reload ();
so how can url using python.? hope help me.
thank you
generally speaking, can utilize kind of web driver instrumentation tool force captcha button, , capture created html. in python can utilize splinter built above selenium "raw" webdriver, nice , pythonic api, although there many more similiar options.
but i'm afraid missing basic here. captch doesn't have "url" . "url" used (probably in anchor element) trigger js code, create actual captcha html (probably no link inside, image). if after, method mentioned above help you. if not.. i'm not sure understand question.
update
there isn't "captcha url" wild goose chase.. captcha image(in specific webpage). url referring 1 regenerate captcha , isn't url, way trigger pre coded js function.
if trying click it, in order regenerate image, way above way go, if mean getting image src
. again, you'll have generate image , html , parse src.
good luck
javascript python python-2.7
No comments:
Post a Comment