日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 编程资源 > 综合教程 >内容正文

综合教程

山东大学学报稿件查询

發布時間:2023/12/3 综合教程 30 生活家
生活随笔 收集整理的這篇文章主要介紹了 山东大学学报稿件查询 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

查詢稿件狀態并上傳郵箱,很多國內期刊模板一致隨意改動

# -*- coding: utf-8 -*-
# @Time ? ?: 2019/12/1 22:17
# @Author ?: yemanzhongting
# @Email ? : sggzhang@whu.edu.cn
# @File ? ?: 1.py
# @Software: PyCharm
# !/usr/bin/python
# -*- coding: UTF-8 -*-import smtplib,time
from email.mime.text import MIMEText
from email.header import Header
from email.mime.application import MIMEApplication
from email.mime.image import MIMEImage
from email.mime.multipart import MIMEMultipart
import datetime
import threading
from selenium import webdriverdef getdata():driver=webdriver.Chrome(r'D:\arcgisserver\chromedriver.exe')driver.get('http://manu52.magtech.com.cn/journalx_gxb/authorLogOn.action')driver.find_element_by_xpath('//*[@id="user_name"]').send_keys('yemanzhongting')driver.find_element_by_xpath('//*[@id="password"]').send_keys('')#whu3_13driver.find_element_by_xpath("//input[@onclick='login()']").click()#driver.implicitly_wait(3)time.sleep(5)driver.find_element_by_xpath('/html/body/table/tbody/tr[2]/td/table/tbody/tr[3]/td[3]/table[1]/tbody/tr[3]/td[3]/table/tbody/tr[1]/td/a').click()time.sleep(5)#/html/body/table/tbody/tr[2]/td/table/tbody/tr[3]/td[3]/table[1]/tbody/tr[3]/td[3]/table/tbody/tr[1]/td/a#driver.find_elements_by_css_selector('body > table > tbody > tr:nth-child(2) > td > table > tbody > tr:nth-child(3) > td:nth-child(3) > table:nth-child(2) > tbody > tr:nth-child(3) > td:nth-child(3) > table > tbody > tr:nth-child(1) > td > a')driver.find_element_by_xpath('//*[@id="_div"]/table[2]/tbody/tr/td[2]/table/tbody/tr[4]/td[2]/a').click()time.sleep(8)a=driver.find_element_by_xpath('/html/body/center/div[1]/table/tbody/tr[1]/td/table/tbody/tr[4]/td[3]/font')tmp=a.textdriver.quit()return tmpdef sendEmail():message = MIMEText(content, 'plain', 'utf-8') ?# 內容, 格式, 編碼message['From'] = "{}".format(sender)message['To'] = ",".join(receivers)message['Subject'] = titletry:smtpObj = smtplib.SMTP_SSL(mail_host, 465) ?# 啟用SSL發信, 端口一般是465smtpObj.login(mail_user, mail_pass) ?# 登錄驗證smtpObj.sendmail(sender, receivers, message.as_string()) ?# 發送print("mail has been send successfully.")except smtplib.SMTPException as e:print(e)# def send_email2(SMTP_host, from_account, from_passwd, to_account, subject, content):
# ? ? email_client = smtplib.SMTP(SMTP_host)
# ? ? email_client.login(from_account, from_passwd)
# ? ? # create msg
# ? ? msg = MIMEText(content, 'plain', 'utf-8')
# ? ? msg['Subject'] = Header(subject, 'utf-8') ?# subject
# ? ? msg['From'] = from_account
# ? ? msg['To'] = to_account
# ? ? email_client.sendmail(from_account, to_account, msg.as_string())
#
# ? ? email_client.quit()def all():con = getdata()sender = 'yemanzhongting@163.com'receivers = ['838044557@qq.com'] ?# 接收郵件,可設置為你的QQ郵箱或者其他郵箱# 第三方 SMTP 服務mail_host = "smtp.163.com" ?# SMTP服務器mail_user = "" ?# 用戶名 葉滿mail_pass = "whu313" ?# 授權密碼,非登錄密碼content = contitle = '人生苦短' ?# 郵件主題sendEmail()def sleeptime(hour, min, sec):return hour * 3600 + min * 60 + sec;if __name__ == '__main__':second = sleeptime(12, 0, 0);while 1 == 1:con = getdata()sender = 'yemanzhongting@163.com'receivers = ['838044557@qq.com'] ?# 接收郵件,可設置為你的QQ郵箱或者其他郵箱# 第三方 SMTP 服務mail_host = "smtp.163.com" ?# SMTP服務器mail_user = "" ?# 用戶名 葉滿mail_pass = "whu313" ?#?content = contitle = '人生苦短' ?# 郵件主題sendEmail()time.sleep(second);

?

總結

以上是生活随笔為你收集整理的山东大学学报稿件查询的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。