app反爬

spider
Author

dd21

Published

December 5, 2022

根据崔庆才的爬虫书练习 https://scrape.center/ https://www.sojson.com/simple_json.html # app1(简单app无爬措施) 对地址直接发送get请求即可可以获取json数据:

# -*- coding: utf-8 -*-
# @Time : 2022/4/17 13:42

import requests

def get(url):
    res = requests.get(url)
    return res

if __name__ == '__main__':
    # 数据一共100条
    res = get("https://app1.scrape.center:443/api/movie/?offset=0&limit=100")
    print(res.text)

在这里插入图片描述 # app2