Giter Club home page Giter Club logo

scranking's Introduction

scranking

scranking is a python library that display ranking of the college swimmer

License: MIT GitHub issues Build Status codecov PyPI Docs

Overview

Scranking is a library designed specifically for extracting data from swimcloud, a comprehensive website that showcases the times and rankings of high school and college swimmers.

The library will allow users to simpily type the URL and get all the neccessary information of that swimmer.

Install

Install using 'pip install scranking' in the command line and import it to your python file like all the others.

Quickstart of scranking

from scranking import Swimmer

    # Initialize the swimmer object with your swimcloud url
    swimmer = Swimmer("url")

    # Check if the browser is working
    swimmer.get_http_status()

    # Create a bf4 for that swimmer objecft
    swimmer.get_soup()

    # Save the html of the website into text file
    swimmer.save_soup_to_file("soup", "filename.txt")

    # Get the full name of that swimmer with the soup you created
    swimmer.get_name("soup")

    # Find a line html that contains swimmer's social network information and hometown
    swimmer.get_info("infohtml")

    # Get all the events for that swimmer with the best time
    swimmer.get_event("soup")

    # A search method for get_event method
    swimmer.lookup_event("40 L Free")

scranking's People

Contributors

joon0110 avatar theydvgaurav avatar

Stargazers

 avatar

Watchers

 avatar

scranking's Issues

Not able to make an object of class Swimmer

Describe the bug
After importing Swimmer class from scranking, while instantiating an error pops up.

To Reproduce
Steps to reproduce the behavior:

  1. Install the package: pip install scranking
  2. Open Python Shell
  3. Import the package: from scranking import Swimmer
  4. Make an object of class Swimmer: swimmer = Swimmer("url")
  5. see error

Expected behavior
The class should be Instantiated without any error.

Screenshots
image

Desktop (please complete the following information):

  • OS: MacOS
  • Version: 13.3.1 (a)

Dependencies of scranking doesn't get installed automatically

Describe the bug
Dependencies of scranking doesn't get installed automatically.

To Reproduce
Steps to reproduce the behavior:

  1. Install the package: pip install scranking
  2. Open Python Shell
  3. Import the package: from scranking import Swimmer
  4. See error

Expected behavior
While installing the package, the dependencies should also get installed automatically.

Screenshots
image

Desktop (please complete the following information):

  • OS: MacOS
  • Version: 13.3.1 (a)

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.