04 2022 档案

摘要:from django.shortcuts import HttpResponse import psutil from .models.first import func from multiprocessing import Process def index(request): n = 888 阅读全文
posted @ 2022-04-23 20:24 CrossPython 阅读(63) 评论(0) 推荐(0) 编辑
摘要:celery Redis Queue 只需使用一个线程。 import threading t = threading.Thread(target=long_process, args=args, kwargs=kwargs) t.setDaemon(True) t.start() return H 阅读全文
posted @ 2022-04-23 14:52 CrossPython 阅读(608) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2022-04-23 12:17 CrossPython 阅读(16) 评论(0) 推荐(0) 编辑
摘要:from subprocess import PIPE, STDOUT,Popen import traceback import subprocess # # -*- encoding=utf-8 -*- # from subprocess import Popen, PIPE, STDOUT # 阅读全文
posted @ 2022-04-22 23:19 CrossPython 阅读(15) 评论(0) 推荐(0) 编辑
摘要:https://www.cnblogs.com/jmilkfan-fanguiju/p/7533729.htmlWindows PowerShell 版权所有 (C) Microsoft Corporation。保留所有权利。 尝试新的跨平台 PowerShell https://aka.ms/ps 阅读全文
posted @ 2022-04-22 22:07 CrossPython 阅读(33) 评论(0) 推荐(0) 编辑
摘要:# https://msdn.microsoft.com/en-us/library/windows/desktop/aa383608(v=vs.85).aspx """ Windows Task Scheduler Module .. versionadded:: 2016.3.0 A modul 阅读全文
posted @ 2022-04-22 21:20 CrossPython 阅读(52) 评论(0) 推荐(0) 编辑
摘要:After looking around the internet for many days. I've decided to ask my own question. I've done some digging around and found some ways to implement t 阅读全文
posted @ 2022-04-22 09:57 CrossPython 阅读(470) 评论(0) 推荐(0) 编辑
摘要:0.安装selenium + Chrome Driver安装selenium:pip install selenium安装Chrome Driver: 下载:http://chromedriver.storage.googleapis.com/index.html版本要对应(chrome://ver 阅读全文
posted @ 2022-04-10 17:59 CrossPython 阅读(58) 评论(0) 推荐(0) 编辑
摘要:import sys import requests from requestium import Session, Keys import json import pandas as pd import time import pickle import os import datetime im 阅读全文
posted @ 2022-04-10 17:37 CrossPython 阅读(70) 评论(0) 推荐(0) 编辑
摘要:firstly, get cookie: browser.get_cookies()then transfer to requests session: cookies = login() for cookie in cookies: session.cookies.set(cookie['name 阅读全文
posted @ 2022-04-06 10:50 CrossPython 阅读(22) 评论(0) 推荐(0) 编辑
摘要:Exception 会捕获除了SystemExit 、KeyboardInterrupt 和GeneratorExit 之外的所有异常。 如果你还想捕获这三个异常,将 Exception 改成 BaseException 即可。 阅读全文
posted @ 2022-04-04 19:25 CrossPython 阅读(483) 评论(0) 推荐(0) 编辑
摘要:from selenium import webdriver from selenium.webdriver.common.by import By import time option = webdriver.ChromeOptions() option.add_experimental_opti 阅读全文
posted @ 2022-04-02 16:37 CrossPython 阅读(20) 评论(0) 推荐(0) 编辑
摘要:import requestsimport seleniumfrom selenium import webdriverfrom selenium.webdriver.common.by import By option = webdriver.ChromeOptions()option.add_e 阅读全文
posted @ 2022-04-01 17:05 CrossPython 阅读(452) 评论(0) 推荐(0) 编辑
摘要:查看chrome安装目录:C:\Users\***\AppData\Local\Google\Chrome\Application 命令行进入安装目录执行:chrome.exe --remote-debugging-port=9180 --user-data-dir="D:\selenum_temp 阅读全文
posted @ 2022-04-01 16:34 CrossPython 阅读(395) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示