07 2023 档案
摘要:urllib来实现cookie和ip代理 1 from urllib.request import Request, build_opener, urlopen 2 from fake_useragent import UserAgent 3 from urllib.parse import url
阅读全文
摘要:1 import requests 2 from time import sleep 3 from lxml import etree 4 from fake_useragent import UserAgent 5 from random import randint 6 import re 7
阅读全文
摘要:详细使用案例 XPath与jsonpath 1 import json 2 from lxml import etree 3 from jsonpath import jsonpath 4 5 def json_test(): 6 str1 = '{"name":"埃里克森"}' 7 # 将字符串转
阅读全文
摘要:服务端 1 import logging 2 import json 3 from base64 import b64encode 4 from odoo import http, SUPERUSER_ID, _ 5 from odoo.http import request 6 7 _logger
阅读全文