Code Monkey home page Code Monkey logo

carp's Introduction

carp

Repository Introduction

This is an integration task that encapsulates selenium twice, which allows us to crawl different websites with a set of encapsulated code and perform different task types.

Now, it has some functions:

  1. log
  2. debug
  3. not need download webdriver
  4. just need to implement 2 functions
  5. exception screenshot
  6. email api send to yourself

Currently, this repository contains:

  1. 下厨房
  2. 心食谱
  3. 美食天下
  4. 果蔬网
  5. 东方财经
  6. 12306
    Plus: The above URLs are not necessarily the URLs of the corresponding tasks.

Install

This project uses Python Git Chrome. Go check them out if you don't have them locally installed.

git clone https://github.com/touero/carp.git

Usage

Please check carp wiki

Related Repository

  • cpython — The Python programming language.
  • selenium — A browser automation framework and ecosystem.

Related Driver Download

Maintainers

@touero

Contributing

How I wish I could add more content in this repo!

Feel free to dive in! Open an issue or submit PRs.

Standard Python follows the Python PEP-8 Code of Conduct.

Contributors

This project exists thanks to all the people who contribute.

License

GNU General Public License v3.0

carp's People

Contributors

linghaoshiyan avatar touero avatar wangpengkaireal avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

carp's Issues

12306 bot查询放票时间报错

[ With version ]
-- python:3.11
-- selenium:4.2.0 4.17.0 4.10.0
-- webdriver:

[ Detailed description ]
-- It is best to provide some screenshot methods to allow reproduction.
2024-01-23 15:12:45,149 - Carp - INFO ==> 'WebElement' object has no attribute 'find_element_by_xpath'
2024-01-23 15:12:45,151 - Carp - INFO ==> Traceback (most recent call last):
File "D:\Code\carp\src\robot_master.py", line 55, in start_task
self.robot.run_task()
File "D:\Code\carp\robots\railway_robot.py", line 16, in run_task
self.check_time()
File "D:\Code\carp\robots\railway_robot.py", line 61, in check_time
station = row.find_element_by_xpath('.//div[@Class="sale-station-name"]').text
^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'WebElement' object has no attribute 'find_element_by_xpath'
我看4.3之后selenium砍掉了这个函数,但是_re已经改好了,不知道还有哪里有问题

[Add]

[Add] xinshipu robot.

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.