https://github.com/jwc20/iwf_ruby
API for iwf.sport in Ruby
https://github.com/jwc20/iwf_ruby
nokogiri olympics ruby scraper sports weightlifting
Last synced: about 1 year ago
JSON representation
API for iwf.sport in Ruby
- Host: GitHub
- URL: https://github.com/jwc20/iwf_ruby
- Owner: jwc20
- Created: 2022-05-23T16:40:05.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2023-03-11T07:22:12.000Z (over 3 years ago)
- Last Synced: 2025-03-15T04:35:37.881Z (over 1 year ago)
- Topics: nokogiri, olympics, ruby, scraper, sports, weightlifting
- Language: Ruby
- Homepage:
- Size: 77.1 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
Awesome Lists containing this project
README
# iwf_ruby
A ruby library to scrape from the IWF (Internation Weightlifting Federation) website
## Methods:
- `#get_years_available`
- `#make_events(year)`
- `#find_event_result_men(event_name_searched, year)`
- `#find_event_result_women(event_name_searched, year)`
- `#print_events(year)`
- `#get_events_page(year)`
- `#get_new_bodyweight_events(year)`
- `#get_old_bodyweight_events(year)`
- `#get_doc(url)`
- `#get_all_men_athlete_names_from_event(url)`
- `#get_all_women_athlete_names_from_event(url)`
- `#make_results_men(url)`
- `#make_results_women(url)`
- `#scrape_results(containers)`
- `#print_male_athletes(url)`
- `#print_female_athletes(url)`
## Scraped Data:
### Athlete Result:
- name
- birthdate
- nation
- athlete_url
- category
- bodyweight
- group
- snatch
- jerk
- total
- rank
### Event:
- name
- location
- date
- event_url
### Tools:
open-uri, nokogiri
## Installation
To install the gem, add to the application's Gemfile:
```
gem 'iwf_ruby', git: 'https://github.com/jwc20/iwf_ruby', ref: 'development'
```
#### Note:
This client is used alongside the frontend:
```
https://github.com/jwc20/twler-frontend-new
```
and the backend:
```
https://github.com/jwc20/twler-backend
```