Giter VIP home page Giter VIP logo

zhihucollection_save's Introduction

将知乎收藏和"我关注的问题"自动发送到Evernote/印象笔记/OneNote/有道云笔记中

用到的库和程序

  • Python_ver = "Python3.6"
  • selenium_ver = "selenium3.141.0"

使用说明

由于知乎的反爬虫机制、原来的requests模式已经不能抓取数据了、所以本次全部重新用selenium来抓取数据;

  • 安装selenium `pip install selenium
  • 需要安装Chrome浏览器
  • 安装Chrome版本对应的Chromedriver.exe
  • 当然你也可以用Firefox浏览器
  • 修改config.ini配置文件
  • python zhihuCollection_Save.py

Chromedriver.exe驱动程序

配置文件说明

[zhihu] # 知乎收藏地址和帐号信息
url = https://www.zhihu.com/collection/20261977
zhihu_user = [email protected]
zhihu_password = xxxxxx

[email] #用于登录并发送邮件
mail_host = smtp.126.com
mail_user = [email protected]
mail_password = xxxxx

[evernote]  # 印象笔记/Evernote/OneNote/有道云笔记的邮件接收地址
to_mail= [email protected] 

接下来的安排

  • 支持印象笔记、Evernote
  • 通过配置文件的方式、填入个性化数据
  • 支持有道云笔记
  • 打包成exe、方便使用

给个笔记的接收邮箱

zhihucollection_save's People

Contributors

huaisha1224 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar safe avatar  avatar  avatar  avatar Geng avatar nakido avatar 韩晓君 avatar  avatar jackrobin avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar kxy avatar Curie avatar tyeAwesome avatar 剑与书 avatar  avatar  avatar Mike Lyou avatar  avatar  avatar yuyang avatar  avatar  avatar newton avatar Luo YU JUN  avatar Fan avatar TKong avatar Harry Wong avatar  avatar  avatar  avatar  avatar  avatar  avatar 宁政 avatar  avatar Kevin199 avatar hongyonggan avatar  avatar lzjx avatar  avatar nxin avatar  avatar wangyu5417 avatar wein871 avatar Herman Lee avatar  avatar lentil avatar  avatar getstars avatar  avatar prettykernel avatar Ricky Zhuang avatar lu haorui avatar  avatar darin avatar  avatar  avatar 红绯鱼 avatar fishyer avatar Huazi avatar Zhang Zhishan avatar Luca Liu avatar niyoh avatar QQ avatar annie avatar LR.X avatar flyeven avatar 肖习波 avatar coolbreeze avatar Lichi Zhang avatar  avatar remerci avatar Angus H. avatar Bigming avatar Libao Jin avatar  avatar  avatar YouQingKui avatar  avatar  avatar Anthony Fu avatar Martin avatar ACoder avatar Jinlong Ru avatar  avatar 袅残烟 avatar  avatar

Watchers

James Cloos avatar  avatar Lichi Zhang avatar George Guo avatar Chenhui Zhou avatar  avatar Dan avatar 王伟 avatar  avatar  avatar  avatar  avatar

zhihucollection_save's Issues

新功能建议

加个把所有关注问题以及其答案down到evernote吧

出错运行不了耶

我配置了文件后,点击打包好的exe运行结果是这样的,不知道哪里出了问题,大佬能告诉我么

Traceback (most recent call last):
  File "site-packages\selenium\webdriver\common\service.py", line 76, in start
  File "subprocess.py", line 707, in __init__
  File "subprocess.py", line 990, in _execute_child
FileNotFoundError: [WinError 2] 系统找不到指定的文件。

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "zhihuCollection_Save.py", line 160, in <module>
  File "zhihuCollection_Save.py", line 88, in start_zhihu_question
  File "zhihuCollection_Save.py", line 44, in get_question_url
  File "site-packages\selenium\webdriver\chrome\webdriver.py", line 73, in __init__
  File "site-packages\selenium\webdriver\common\service.py", line 83, in start
selenium.common.exceptions.WebDriverException: Message: 'chromedriver' executable needs to be in PATH. Please see https://sites.google.com/a/chromium.org/chromedriver/home

[27272] Failed to execute script zhihuCollection_Save


请按任意键继续. . .

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.