一、分析需求
腾讯招聘网址:https://careers.tencent.com/search.html
分析获取url:
提取数据的方法:
使用json转字典
二、代码实现
import requests
import csv
url = "https://careers.tencent.com/tencentcareer/api/post/Query"
headers = {
"user-agent": "Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/55.0.2883.87 Safari/537.36",
}
params = {
'area': ' cn',
'attrId': ' ',
'bgIds': ' ',
'categoryId': ' ',
'cityId': ' ',</