Displaying Logged in Content on a Website

a 夏天 提交于 2019-11-29 15:33:41

It sounds like you might be looking for cURL and cookiejar:

http://curl.haxx.se/libcurl/php/examples/cookiejar.html

This will allow you to programmatically login to a site, keep a session open, and then access the login protected content. Once you get the page contents, then you can use DomDocument (http://us2.php.net/manual/en/domdocument.loadhtml.php) to access the content you need and turn it into RSS data.

Edit: if the website uses form keys, like many do, this will require extra work to extract the form key from the login page and add it to the login POST

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!