dragonsun2005 2013-09-01 12:10
浏览 61

在PHP中模拟HTML5 LocalStorage

I am making a bot to scrap and extract data from web pages. Some websites require cookies, they save some specific sata in the client's cookies to verify it in every request, for security reasons. Now i got stuck with a new type of measure in which the website keeps the same idea, but instead of using cookies, it uses HTML5 LocalStorage. So my question is, is there any know way to simulate LocalStorage read/write, if not, is there any idea to do it?

my first thought is to parse the javascript code that uses the LocalStorage and handle read/writes in php variables, this would work at least for some basic known operations.

  • 写回答

0条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥15 用comsol模拟大气湍流通过底部加热(温度不同)的腔体
    • ¥50 安卓adb backup备份子用户应用数据失败
    • ¥20 有人能用聚类分析帮我分析一下文本内容嘛
    • ¥15 请问Lammps做复合材料拉伸模拟,应力应变曲线问题
    • ¥30 python代码,帮调试
    • ¥15 #MATLAB仿真#车辆换道路径规划
    • ¥15 java 操作 elasticsearch 8.1 实现 索引的重建
    • ¥15 数据可视化Python
    • ¥15 要给毕业设计添加扫码登录的功能!!有偿
    • ¥15 kafka 分区副本增加会导致消息丢失或者不可用吗?