Comments (11)
$this->conf['ip'] = 'x.x.x.x';
date_default_timezone_set('Asia/Jakarta');
$this->conf['time'] = time();
$this->conf['path'] = dirname(__FILE__);
function login($username, $password)
{
$this->ch = curl_init();
curl_setopt($this->ch, CURLOPT_USERAGENT, 'Mozilla/5.0 (Linux; U; Android 2.3.7; en-us; Nexus One Build/GRK39F) AppleWebKit/533.1 (KHTML, like Gecko) Version/4.0 Mobile Safari/533.1');
curl_setopt($this->ch, CURLOPT_URL, 'https://m.klikbca.com/login.jsp');
curl_setopt($this->ch, CURLOPT_COOKIEFILE, $this->conf['path'] . '/cookie');
curl_setopt($this->ch, CURLOPT_COOKIEJAR, $this->conf['path'] . '/cookiejar');
$this->curlexec();
$params = implode('&', array('value(user_id)=' . $username, 'value(pswd)=' . $password, 'value(Submit)=LOGIN', 'value(actions)=login', 'value(user_ip)=' . $this->conf['ip'], 'user_ip=' . $this->conf['ip'], 'value(mobile)=true', 'mobile=true'));
curl_setopt($this->ch, CURLOPT_URL, 'https://m.klikbca.com/authentication.do');
curl_setopt($this->ch, CURLOPT_REFERER, 'https://m.klikbca.com/login.jsp');
curl_setopt($this->ch, CURLOPT_POSTFIELDS, $params);
curl_setopt($this->ch, CURLOPT_POST, 1);
$this->curlexec();
}
from bca-parser.
sepertinya karena mobile klikbca sekarang uda mesti enable javascript.. saya coba debug function login() juga uda gagal. T_T
from bca-parser.
@fedry wah kalau begitu metode scraping ini kemungkinan tidak bisa digunakan lagi...
from bca-parser.
ini saya kebetulan menggunakan script single php file, modif sendiri, dengan ngambil inspirasi dari sini, dan masi jalan.
from bca-parser.
ini saya kebetulan menggunakan script single php file, modif sendiri, dengan ngambil inspirasi dari sini, dan masi jalan.
kalau masih jalan, bole di-share script utk bagian loginnya? :)
from bca-parser.
hmm, spertinya terkait masalah saat resolve ip address
from bca-parser.
hmm, spertinya terkait masalah saat resolve ip address
iya.. ini masalah jg.
tapi saya hardcode ip addressnya, tetep gak bisa jalan jg...
ada yg berhasil setelah di hardcode ip addressnya?
from bca-parser.
@fedry hari ini saya test dengan IP manual masih bisa mas ambil transaksi...
from bca-parser.
@luqmansolihin barusan saya update ip resolver nya dan masih berfungsi dengan baik.
from bca-parser.
@kadekjayak terimakasih, sudah solve sekarang.
from bca-parser.
yes.. ini uda sembuh... :)
from bca-parser.
Related Issues (11)
- Warning: DOMDocument::loadHTML(): HOT 2
- Get saldo error 302 HOT 2
- kenapa history saldo setiap transaksi gak ada bang? HOT 1
- file_get_contents([https://api.ipify.org?format=json](https://api.ipify.org/?format=json)): Failed to open stream: HTTP request failed! HTTP/1.1 503 Service Unavailable\r\n HOT 2
- Mutasi PEND HOT 1
- DOMDocument::loadHTML(): Argument #1 ($source) must not be empty HOT 25
- Error pada jam 24.00 sd 06.00 + Senin sepanjang hari HOT 4
- tidak bisa cek saldo: This document you requested has moved temporarily HOT 9
- Undefined offset: 1 HOT 4
- Sudah gak jalan lagi
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bca-parser.