Giter Site home page Giter Site logo

religious-auto_data-py's Introduction

GIF

Python自动化脚本

  • 为宗教自动化答题脚本的python爬虫
  • python环境:3.9
  • 所需的库:lxml
    • pip install lxml

使用方法

  1. 保存网页为本地文件(越多越好)
  2. 将网页文件保存为html格式并放在 main.py 同目录下 (命名为1.html,2.html......)
  3. 调整 main.py中的网页文件名参数(修改数字)
  4. 运行 main.py
  5. 查看是否含有报错以及相关信息,有 则必须处理(否则数据库就乱掉了)!
  6. 将得到的列表传入 json格式化页面https://www.bejson.com/explore/index_new/)
  7. 格式化后填入VScode中消除所有因,导致的换行,修复所有飘红(如format_Example.js文件) (因为他这个格式化是通过英文的逗号之类的东西换行,所以会误判,但关系不大,2分钟就可以处理完)
  8. 将其填入脚本的data.js 的列表中 (注意格式)
  9. 自行填写题目的正确选项
  10. 即可使用

religious-auto_data-py's People

Contributors

zkeq avatar

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.