根据崔庆才的爬虫书练习 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):
= requests.get(url)
res return res
if __name__ == '__main__':
# 数据一共100条
= get("https://app1.scrape.center:443/api/movie/?offset=0&limit=100")
res print(res.text)
# app2