Open Daniel-Yen opened 7 years ago
Sorry, this is my own function to extract the text from $text between y and z beginning in x:
extrae($text,x,y,z)
Like http://www.iqiyi.com/v_19rr78nouw.html
, how can I get the variable $link?
Could you show me an example of the variable $link? @denobisipsis
$link is the url taken from api cache,
then
"l":"\/v0\/20170614\/78\/a0\/cbd6186ae8fdf23a50afd44017658dbc.f4v?qd_tvid=693339900&qd_vipres=2&qd_index=1&qd_aid=693339900&qd_stert=0&qd_scc=8eb9d54049b2b8a5a77bb54c35123b19&qd_sc=656a28d334d91a9027977b0ef27742cd&qd_p=5aa46545&qd_ip=xxxxxxxx&qd_k=7ea71d73f923e2e343c97d96e1c4b048&qd_src=01010031010000000000&qd_vipdyn=2&qd_uid=0&qd_tm=1502778994423&qd_vip=0"
here you have the variables requested
When I want to test the Iqiyi VIP link, I was puzzled at the funtion extrade().
$qdsc=extrae($link,'&qd','_sc=','&'); $qd_ip=extrae($link,'&qd_ip','=','&'); $qd_scc=extrae($link,'&qd_scc','=','&'); $qd_tm=extrae($link,'&qd_tm','=','&'); $qd_k=extrae($link,'&qd_k','=','&'); $qd_index=extrae($link,'&qd_index','=','&'); $qd_stert=extrae($link,'&qd_stert','=','&');
So what's the content of the function "extrae()"? @denobisipsis