php - Pinterest scraping pagination parameters -
i scraping pinterest.com, because don't want approve application use official api. able scrape data: pins, boards, likes, followers, etc. pinterest.com gives data 50 first items. have analyzed server's answers when scrolling down page , there dynamic loaded ajax results.
request server this
this request's parameters are:
_
1469685347816 data
{"options":{"username":"humor","bookmarks":["pz8ylje0mdk3ndc4mtkunzaznzu2mty3ntq0odywfgiyn2y2ntlmyzq0y2u0zgu1yjy5zjnkytlkmzm3odeynzi5m2fiywfhymi3ndblodm3zdjkzgu2mmrhogywn2e ="],"is_own_profile_pins":true},"context":{}} module_path app>userprofilepage>userprofilecontent>grid>griditems>pin(component_type=0, show_board=true, use_native_image_width =true, squish_giraffe_pins=none, show_pinner=true, show_pinned_from=false, resource=pinresource(main_module_name =null, id=703756168806524)) source_url /humor/pins
several more request's parameters (next dynamic results of same page): _
1469685347818 data
{"options":{"username":"humor","bookmarks":["pz8yljezodk5njczmdyunzaznzu2mty2mjy4mjixfdkxyzlkmdfhmdmzzmm3m2jlztkxyzaxodaxotnmmgm2ywvhoge4odflnjvmyjkwzmi1ndkyyjbhndk3ogm4nza ="],"is_own_profile_pins":true},"context":{}} module_path app>userprofilepage>userprofilecontent>grid>griditems>pin(show_pinner=true, show_pinned_from=false, show_board =true, squish_giraffe_pins=none, use_native_image_width=true, component_type=0, resource=pinresource (id=194428908887545178, main_module_name=null)) source_url /humor/pins
_
1469685347819 data
{"options":{"username":"humor","bookmarks":["pz8yljezodazotewnzyunzaznzu2mty1njq5nzq0fdhkyzuwnja3mme3mgyzntm3y2mwytbkyzixmjy2y2e5y2nimgm3mdk5zju1yjyxm2qwyzyzogzinwi2yze4mwq ="],"is_own_profile_pins":true},"context":{}} module_path app>userprofilepage>userprofilecontent>grid>griditems>pin(show_pinner=true, show_pinned_from=false, show_board =true, squish_giraffe_pins=none, use_native_image_width=true, component_type=0, resource=pinresource (id=194428908887545178, main_module_name=null)) source_url /humor/pins
i understood 1469685347819, 1469685347818 pagination parameters, don't know how correctly generate them retrieve needed pagination results. looks 1469685347 part timestamp when page loaded , last digits pagination parameters.
Comments
Post a Comment