python - 抓取需要使用 Python 登录的站点

标签 python screen-scraping

我为我的网站使用了多个广告网络,为了查看我赚了多少钱,我需要每天登录每个广告网络以计算值(value)。我正在考虑制作一个 Python 脚本来为我完成此操作以快速获得总数。我知道我需要执行 POST 请求才能登录,然后存储我返回的 cookie,然后在传递这些 cookie 时 GET 请求报告页面。

当我手动浏览网站时,用 Python 复制我正在做的事情的最方便的方法是什么?

最佳答案

关于python - 抓取需要使用 Python 登录的站点,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3121639/

相关文章:

linux - 如何在Linux控制台中以编程方式在la终端/dev/vcs {,a}中 “dump”内容?

python - 在类中声明装饰器

python - pcolor 的自定义颜色图

Python:random.random()植入哪里?

python - 从字典 python 列表中删除重复键

python-3.x - 在 Google 表格或 Python 中的 Excel 中截取范围的屏幕截图?

javascript - 在抓取图像 src 上获取 base64 字符串

python - 如何在 Python 中将 MB 精确转换为 GB

screen-scraping - 抓取网站的请求/第二标准是什么?

python - Splinter 拯救无形的 html