- Jun 30, 2014
- 13,756
- 5,223
Hi all, twitter following action html and url calls have just changed if you're scripts/bot have just stopped working this is what to do
First change
replace follower page search $xpath->query('//*[@data-cursor]//@data-cursor');
with
$xpath->query('//*[@min_position]//@min_position');
Second change
replace HTTP call https://twitter.com/'.$user_to_scrape.'/followers/users?cursor='.$data_cursor_value.'&cursor_index=&cursor_offset=&include_available_features=1&include_entities=1&is_forward=true
with
https://twitter.com/'.$user_to_scrape.'/followers/users?include_available_features=1&include_entities=1&max_position='.$data_cursor_value
Third change
replace look for "cursor" in the json with "min_position"
Hope this saves someone some time
First change
replace follower page search $xpath->query('//*[@data-cursor]//@data-cursor');
with
$xpath->query('//*[@min_position]//@min_position');
Second change
replace HTTP call https://twitter.com/'.$user_to_scrape.'/followers/users?cursor='.$data_cursor_value.'&cursor_index=&cursor_offset=&include_available_features=1&include_entities=1&is_forward=true
with
https://twitter.com/'.$user_to_scrape.'/followers/users?include_available_features=1&include_entities=1&max_position='.$data_cursor_value
Third change
replace look for "cursor" in the json with "min_position"
Hope this saves someone some time