Coder Social home page Coder Social logo

dev-essbee / iplt20-scraper Goto Github PK

View Code? Open in Web Editor NEW
4.0 1.0 10.0 15 KB

A CLI web scraping application to extract stats from https://www.iplt20.com - the official website of Indian Premier League.

License: MIT License

Python 100.00%
python3 beautifulsoup4 pyinquirer webscraping

iplt20-scraper's Introduction


  • This is Shubham Bhandari

  • 🏫 Currently pursuing Masters in Data Science and Business Analytics at ESSEC Business School and CentraleSupélec.

  • 💻 If you have a data science or machine learning project, I may be your man.

  • ⚡ Fun fact: I prefer tabs over spaces.

  • 👨‍💻 To know more about me visit EssBee


My Skill Set

Programming Languages

JavaScript Python

AI/ML

TensorFlow OpenCV pytorch Keras

Devops

GCP AWS Docker Firebase

Database

MongoDB MySQL

Other

Linux Adobe XD Arduino Latex Raspberry Pi Bash Git Figma

Connect with me


Recent Medium Posts


Stats


Fun Zone

My Music 🎵


My Music

Programming Joke 🤪


Jokes Card

Support Me


You are visitor Number


Visitor Count


iplt20-scraper's People

Contributors

dev-essbee avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

iplt20-scraper's Issues

Getting Error while running Scrapper.py

Hi ,

I am getting an error while running Scrapper.py.
The error is:
IndexError Traceback (most recent call last)
in ()
171 if name == 'main':
172 try:
--> 173 main()
174 except AssertionError:
175 print('Interface not supported, please use terminal or command prompt.')

in main()
162
163 def main():
--> 164 years, stats_url, stats_title = get_year_stats()
165 years_q, stats_q = prepare_question(years, stats_title, stats_url)
166 years, stats = user_input(years_q, stats_q)

in get_year_stats()
120 if page.status_code == 200:
121 soup = BeautifulSoup(page.content, 'html.parser')
--> 122 years = get_years(soup)
123 stats_url, stats_title = get_stats(soup)
124 stats_url.append('team-ranking')

in get_years(soup)
100 def get_years(soup):
101 years = [year.get_text() for year in soup.find_all('a', class_=re.compile(r'sub-menu*'))]
--> 102 years[-1] = 'all-time'
103 return years
104

IndexError: list assignment index out of range

Can you please help me with this?

Add GUI

Add GUI, that will allow the user to select year and type of stat and then either display it in the interface or download the file or maybe both. If you would like to work on the issue please comment below

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.