Study
Since Google recently changed its swap logic, and now requires a token for it, I found myself trying to figure out how to manually generate these tokens, or clear them from the HTML received with each response. So let's get our hands dirty.
Fiddler2, , , "" Play .
:
POST https://play.google.com/store/search?q=a&c=apps HTTP/1.1
Host: play.google.com
Connection: keep-alive
Content-Length: 123
Origin: https://play.google.com
User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.95 Safari/537.36
Content-Type: application/x-www-form-urlencoded;charset=UTF-8
Accept: */*
X-Client-Data: CIe2yQEIpLbJAQiptskBCMG2yQEInobKAQjuiMoBCImSygE=
Referer: https://play.google.com/store/search?q=a&c=apps
Accept-Encoding: gzip, deflate
Accept-Language: pt-BR,pt;q=0.8,en-US;q=0.6,en;q=0.4,es;q=0.2
** Post Body **
start=0&num=0&numChildren=0&pagTok=GAEiAggU%3AS%3AANO1ljLtUJw&ipf=1&xhr=1&token=bH2MlNeViIRJA8dT-zhaKrfNH7Q%3A1420660393029
, , , - , .
3 , :
"GAEiAggU% 3AS% 3AANO1ljLtUJw", "GAEiAggo% 3AS% 3AANO1ljIeRQQ", "GAEiAgg8% 3AS% 3AANO1ljIM1CI"
, , , , :
1 - : "GAEiA"
2 - :
3 - : "% 3AS% 3"
4 - : 11
Javascript x HTTP
, , , , Http. ? - Javascript.
Google - JS, , .
HTML, , , , - :
u0026c\\u003dapps\42,\42GAEiAghQ:S:ANO1ljLxWBY\42,\0420\42,\0420\42,\0420\42]\n
, , " ". , , : ": S:" "% 3AS%".
Win
, , : S:% 3AS%.
, ( Regex online Builder
:
/GAEi +:. S:. {11}\42/
:
TL: DR
HTML, Google "" Google, "" Javascript ( , , Selenium - ).
pagToken , html, ( ), , .
, , ,