Coder Social home page Coder Social logo

carboi's People

Contributors

ajulik1997 avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Forkers

berkmann18

carboi's Issues

You might need to check it

I just stumbled upon this and thought I'd try with my car's code and see if I get what I expect.

Here's the output

This is just a test and convenience script so only use the XXXX XXX format, anything else will just crash it.
====================
Enter car reg : **** xxx
Traceback (most recent call last):
  File "carBoi.py", line 14, in <module>
    make = soup.find('h3', attrs={'class': 'make-model'}).text.strip()
AttributeError: 'NoneType' object has no attribute 'text'

The https://www.mycarcheck.com/check?reg_no=... query shows up with correct information, I looked at the console and checked if h3.make-model was pointing to an actual node (spoiler... It did not link to anything) so I thought I'll let you know.

I don't know if the fact I'm not signed up make that script fail but here's the CSS selector for the make: span.top-title (n.b: this node doesn't only show the make of the car).

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.