Need some help about captcha solving with API. I use Python.
This is site where captcha is - https://www.inipec.gov.it/cerca-pec/-/pecs/companies
I use API (https://azcaptcha.com/document) to solve Captcha. When captcha has solved, the result needs to be paste in special form.
But there is no submit button to pass it.
THere is some advice in API documentation:
Sometimes there's no submit button and a callback function is used
isntead. The function is executed when reCaptcha is solved.
Callback function is usually defined in data-callback parameter of
reCaptcha, for example:
data-callback="myCallbackFunction"
My question is: what is callback function, and how can i do it in Python.
Thanks.
Related
I use Python and the selenium libary. My problem is that on the internet page top.gg when you vote there is a H captcha that opens automaitically. The problem is I can't find a callback function. I use 2captcha to get the token. Does anyone have a clue how to solve such a H captcha. Or is there a hidden callback function. There is at least no submit button and if you press outside the captcha the captcha is closed and the vote process is terminated. And you have to vote again.
I already tried it with the add on from anycaptcha callback hooker Callback hooker. This uses this script in the console (document.getElementById('anycaptchaSolveButton').onclick('TOKEN_FROM_STEP_4');)
Problem is with me this always gives an error (
Uncaught TypeError: document.getElementById(...).onclick is not a function)
im trying to solve a recaptcha from this website https://app.cfe.mx/aplicaciones/CCFE/SolicitudesCFE/Solicitudes/ConsultaTuReciboLuzGmx.aspx
I´ve already put the token inside captcha input (#g-recaptcha-response) however in this recaptcha there is no submit button, first I thought that this issue couldbe solved by finding the callback so the problem is that there is no callback...
so my question is when i put the token inside the captcha input is there any way to trigger the green check?
I need to view post parameters with python. The website in question has a post parameter of business_number where number changes after each successful action. I need to be able to get this number and then submit a POST request with a value.
A GET request does not give me the needed information. (I have tried with requests.) I have used a firefox addon called httprequester and used the "Submit" button and within the response is the information I need. I'm a real novice with HTTP :) so is there a way I can submit with Python (click the submit button) and then save the response in a variable that I will sort through.
I used the requests module to solve my problem:
http://docs.python-requests.org/en/latest/
I have a button next to some text on a page. I'd like to execute some Python code if that button is pressed. The only way I know how to do this is through a view. The thing is, I need the page not to redirect or refresh or anything, just some code to execute when the button is pressed. Any ideas on how I'd get this done?
Asynchronous Javascript and XML (Ajax).
You can perform an Ajax request to the view you want to execute and this will be done without refreshing nor redirecting the current web page.
This is the W3C Ajax tutorial which might be good for beginners. All you have to do is code some javascript in your templates, add the onclick event listener to your button and you're up :)
You may take a look at this tutorials and documentation, seems very apropiate.
Hope this helps!
When button is clicked you can use javascript to make an async request (AJAX) to your django project
typing in django ajax to google shows a lot of resources, one of which is a beginners tutorial:
http://lethain.com/two-faced-django-part-5-jquery-ajax/
Basic question, but I can't find a simple answer anywhere.
What is the best way to do the following in Django:
User pushes button
Some Python code gets crunched server-side
User sees confirmation page
All the user needs to know is that the server did what he told it to. No input other than the button click.
Thanks in advance for your help.
That's what a Form is for. You can create a small HTML form with just the button.
The form's action is the URI to which a request is sent.
Django parse the URI and calls a view function.
The function does the work and returns the resulting page.