Get values in PHP from website with capcha
- or -
Post a project like this3152
$100
- Posted:
- Proposals: 3
- Remote
- #863539
- Awarded
Description
Experience Level: Intermediate
General information for the website: Get Values from a website
Description of requirements/features: I need a php script that get values from a website and put in a vector.
Something like this
$html = file_get_html($xurl);
/* ARRAYS PRINCIPAIS E UM AUXILIAR */
$tmp_prod = array(); // ARRAY AUXILIAR
$emitente = array(); // ARRAY DO EMITENTE DA NFCE
$produto = array(); // ARRAY DOS PRODUTOS
/* ITERAÇÃO DOS DADOS DO EMITENTE E ARMAZENA EM ARRAY */
foreach ($html->find('td[class=NFCCabecalho_SubTitulo1]') as $item) {
$texto = str_replace(" ", "", $item->plaintext);
if ($texto != "")
array_push($emitente, $texto);
}
/* ITERAÇÃO DOS PRODUTOS E ARMAZENA EM ARRAY */
foreach($html->find('tr[id]') as $item){
foreach($item->find('td') as $td){
array_push($tmp_prod, $td->plaintext);
}
array_push($produto, $tmp_prod);
$tmp_prod = array();
}
But this website use a captcha, then i need use service humancoder to decoder.
http://humancoder.com/API.aspx
Eg:
https://satsp.fazenda.sp.gov.br/COMSAT/Public/ConsultaPublica/ConsultaPublicaCfe.aspx
key: 35150816878675000925590000162040018396444820
I need pass each key i need and receive data in a vector.
I need retrieve all business data
CGM DROGARIA LTDA EPP
Endereço: AVENIDA CASSIANO RICARDO, Nº 1364 - PISO TERREO
Bairro: JARDIM ALVORADA - CEP: 12240-540 - SAO JOSE DOS CAMPOS
CNPJ: 16.878.675/0009-25 I.E.: 645.601.550.110 I.M.:
And all product data
COD DESCRIÇÃO QTD UN VL UN R$ (VL TR R$)* VL ITEM R$
1 922682 LACTULIV XPE AMEIXA 120ML LEGR 1,0000 UN X 32,01 (5,06) 32,01
2 083766 PARACET+CODEINA 30MG 12.EUR A2 1,0000 UN X 15,49 (3,98) 15,49
3 054122 DOLAMIN 125MG 16.S FARMOQ 1,0000 UN X 20,44 (4,57) 20,44
4 097758 CLOR CIPROFLOX CIMED 500MG 14. 1,0000 UN X 27,70 (4,74) 27,70
5 832782 MECLIN 50MG 15.S APSEN 1,0000 UN X 32,38 (8,83) 32,38
6 141457 PANTOPRAZOL LEG 40MG 14.S 1,0000 UN X 50,14 (9,24) 50,14
Extra notes:
Description of requirements/features: I need a php script that get values from a website and put in a vector.
Something like this
$html = file_get_html($xurl);
/* ARRAYS PRINCIPAIS E UM AUXILIAR */
$tmp_prod = array(); // ARRAY AUXILIAR
$emitente = array(); // ARRAY DO EMITENTE DA NFCE
$produto = array(); // ARRAY DOS PRODUTOS
/* ITERAÇÃO DOS DADOS DO EMITENTE E ARMAZENA EM ARRAY */
foreach ($html->find('td[class=NFCCabecalho_SubTitulo1]') as $item) {
$texto = str_replace(" ", "", $item->plaintext);
if ($texto != "")
array_push($emitente, $texto);
}
/* ITERAÇÃO DOS PRODUTOS E ARMAZENA EM ARRAY */
foreach($html->find('tr[id]') as $item){
foreach($item->find('td') as $td){
array_push($tmp_prod, $td->plaintext);
}
array_push($produto, $tmp_prod);
$tmp_prod = array();
}
But this website use a captcha, then i need use service humancoder to decoder.
http://humancoder.com/API.aspx
Eg:
https://satsp.fazenda.sp.gov.br/COMSAT/Public/ConsultaPublica/ConsultaPublicaCfe.aspx
key: 35150816878675000925590000162040018396444820
I need pass each key i need and receive data in a vector.
I need retrieve all business data
CGM DROGARIA LTDA EPP
Endereço: AVENIDA CASSIANO RICARDO, Nº 1364 - PISO TERREO
Bairro: JARDIM ALVORADA - CEP: 12240-540 - SAO JOSE DOS CAMPOS
CNPJ: 16.878.675/0009-25 I.E.: 645.601.550.110 I.M.:
And all product data
COD DESCRIÇÃO QTD UN VL UN R$ (VL TR R$)* VL ITEM R$
1 922682 LACTULIV XPE AMEIXA 120ML LEGR 1,0000 UN X 32,01 (5,06) 32,01
2 083766 PARACET+CODEINA 30MG 12.EUR A2 1,0000 UN X 15,49 (3,98) 15,49
3 054122 DOLAMIN 125MG 16.S FARMOQ 1,0000 UN X 20,44 (4,57) 20,44
4 097758 CLOR CIPROFLOX CIMED 500MG 14. 1,0000 UN X 27,70 (4,74) 27,70
5 832782 MECLIN 50MG 15.S APSEN 1,0000 UN X 32,38 (8,83) 32,38
6 141457 PANTOPRAZOL LEG 40MG 14.S 1,0000 UN X 50,14 (9,24) 50,14
Extra notes:
ANDRE S.
100% (7)Projects Completed
7
Freelancers worked with
6
Projects awarded
73%
Last project
20 Aug 2015
Brazil
New Proposal
Login to your account and send a proposal now to get this project.
Log inClarification Board Ask a Question
-
There are no clarification messages.
We collect cookies to enable the proper functioning and security of our website, and to enhance your experience. By clicking on 'Accept All Cookies', you consent to the use of these cookies. You can change your 'Cookies Settings' at any time. For more information, please read ourCookie Policy
Cookie Settings
Accept All Cookies