随笔分类 - data
摘要:mysql group by 组内排序 SELECT * FROM (SELECT MAX(id) AS t,wukong_uid, 1 AS tag FROM toutiao_uid_gathered_wukong GROUP BY wukong_uidUNION ALLSELECT id AS
阅读全文
摘要:https://neo4j.com/docs/ Server version Neo4j/3.3.1 Server address 127.0.0.1:7687 Query MATCH (a:Person)-[:KNOWS]->(friend) WHERE a.name ="Arthur" RETU
阅读全文
摘要:js = 'var a=document.getElementsByClassName("user-data-right")[0];a.target="_self";a.href="{}";a.click();'.format( 'https://www.toutiao.com/c/user/{}/
阅读全文
摘要:charset='utf8mb4' conn = pymysql.connect(host=h, port=pt, user=u, passwd=p, db=db, charset='utf8mb4')
阅读全文
摘要:Line #1218 : 101.232.208.245 - - [16/Jan/2018:02:47:34 +0800] "GET /?xltestdesfs HTTP/1.1" 200 3865 Line #1243 : 101.232.208.245 - - [16/Jan/2018:03:0
阅读全文
摘要:[root@VM_61_158_centos ~]# curl http://ip.chinaz.com/220.112.233.179 |grep -e Whwtdhalf.*span.*span.*span.*span % Total % Received % Xferd Average Spe
阅读全文
摘要:from selenium import webdriverimport time, randomdef gen_browser(btype='chrome'): return webdriver.Chrome()browser = webdriver.Chrome()url = 'https://www.wukong.com/'browser.get(url)browser.refre...
阅读全文
摘要:for tof in tofollow_uid_list: print(tof) js = 'window.location.href="https://www.toutiao.com/c/user/{}/"'.format(tof) browser.execute_script(js) time.sleep(random.randint(30, 60)) n...
阅读全文
摘要:实例化一个新的浏览器,打开某个url from selenium import webdriverfrom selenium.webdriver.chrome.options import Optionsimport time, randomfrom selenium.webdriver.commo
阅读全文
摘要:firefox_profile = webdriver.FirefoxProfile()firefox_profile.set_preference('permissions.default.image', 2)#某些firefox只需要这个firefox_profile.set_preference('browser.migration.version', 9001)#部分需要加上这个#...
阅读全文
摘要:db-is-in- (1267, "Illegal mix of collations (utf8mb4_unicode_ci,IMPLICIT) and (utf8_general_ci,COERCIBLE) for operation '='") SELECT id FROM qqzoneshu
阅读全文