Skip to content

Commit

Permalink
fix names inputs
Browse files Browse the repository at this point in the history
  • Loading branch information
jhowbhz committed May 2, 2024
1 parent 1928693 commit 206fdb4
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
10 changes: 5 additions & 5 deletions Controllers/ScrapController.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,11 +73,11 @@ class ScrapController {
await frame.evaluate((gabarito_captcha) => {

// preencher os campos do formulário
document.querySelector('input[id="F_77"]').value = params.f_77;
document.querySelector('input[id="F_89"]').value = params.f_89;
document.querySelector('input[id="F_80"]').value = params.f_80;
document.querySelector('input[id="F_92"]').value = params.f_92;
document.querySelector('input[id="F_102"]').value = params.f_102;
document.querySelector('input[id="F_77"]').value = params.origem;
document.querySelector('input[id="F_89"]').value = params.numero;
document.querySelector('input[id="F_80"]').value = params.complemento;
document.querySelector('input[id="F_92"]').value = params.ano;
document.querySelector('input[id="F_102"]').value = params.email;

// pegar todas as imagens do site
const imgs = document.querySelectorAll('img');
Expand Down
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,11 @@ curl_setopt_array($curl, array(
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_POSTFIELDS =>'{
"F_77": "1234567",
"F_89": "123456789",
"F_80": "12345678910",
"F_92": "12345678911",
"F_102": "2022"
"origem": "1234567",
"numero": "123456789",
"complemento": "12345678910",
"ano": "2022",
"email": "email@tantofaz.com"
}',
CURLOPT_HTTPHEADER => array(
'Content-Type: application/json'
Expand Down

0 comments on commit 206fdb4

Please sign in to comment.