This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python3 | |
import datetime | |
import re | |
from time import sleep | |
import PyRSS2Gen | |
from bs4 import BeautifulSoup | |
from selenium import webdriver | |
# url = "http://dgxg.njust.edu.cn/_t689/main.htm" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
import os, sys, requests, base64, urllib.request, codecs | |
from bs4 import BeautifulSoup | |
from optparse import OptionParser | |
_apiKey = 'nGc0ya2J7z2aalFrGa8Gx3Q1o8grGFsn3cz58EJy' | |
def get_content_to_file( url, htmlfilename ): | |
with requests.Session( ) as s: |