# Automatic data registration **Repository Path**: BlueRocket/automatic-data-registration ## Basic Information - **Project Name**: Automatic data registration - **Description**: 个人使用--网址自动登录上传数据 python & selenium - **Primary Language**: Python - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2024-05-07 - **Last Updated**: 2024-11-22 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # 注意事项 #### 1.从网址 https://dgom.dg.cn:8080/dataSearch 导出文件时,需要多导出一个,比如上次登记到2024-5-7,那么就需要从2024-5-7开始导出,因为计算生产数量的时候需要用到,但是不会重复登记2024-5-7,到表格最后一行程序自动停止。 #### 2. 代码里面需要导入一些包 >import requests > >import pandas as pd > >from selenium import webdriverfrom selenium.webdriver.common.by import By > >from selenium.webdriver.support.ui import WebDriverWait > >from selenium.webdriver.support import expected_conditions as EC > >import pandas as pd > >from selenium.webdriver.chrome.options import Options > >import time > >from selenium.webdriver.chrome.service import Service > >import sys ##### 使用以下指令 >pip install requests > >pip install pandas > >pip install selenium > >pip install time > >pip install sys #### 3.代码里面用的chrome浏览器,需要下载浏览器对应驱动 > 教程链接:(https://blog.csdn.net/m0_44974332/article/details/138014787) #### 4.用户名密码输一下 #### 5.添加OCR验证码识别 > pip install numpy==1.24.0 > > pip install easyocr > > pip install pillow > > pip install -i https://mirrors.aliyun.com/pypi/simple/ opencv-python