Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kupolak/vocabulary_to_csv
Ruby gem designed for extracting vocabulary lists from Vocabulary.com and saving the data into a CSV file. It employs the Nokogiri gem for web scraping.
https://github.com/kupolak/vocabulary_to_csv
anki vocabulary-learning
Last synced: 22 days ago
JSON representation
Ruby gem designed for extracting vocabulary lists from Vocabulary.com and saving the data into a CSV file. It employs the Nokogiri gem for web scraping.
- Host: GitHub
- URL: https://github.com/kupolak/vocabulary_to_csv
- Owner: kupolak
- License: mit
- Created: 2023-12-11T23:08:27.000Z (11 months ago)
- Default Branch: main
- Last Pushed: 2023-12-11T23:10:42.000Z (11 months ago)
- Last Synced: 2024-10-01T14:47:49.740Z (about 1 month ago)
- Topics: anki, vocabulary-learning
- Language: Ruby
- Homepage:
- Size: 6.84 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE.txt
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# vocabulary_to_csv
`vocabulary_to_csv` is a Ruby gem designed for extracting vocabulary lists from Vocabulary.com and saving the data into a CSV file. It employs the Nokogiri gem for web scraping.
## Installation
Install the gem and add to the application's Gemfile by executing:
$ bundle add vocabulary_to_csv
If bundler is not being used to manage dependencies, install the gem by executing:
$ gem install vocabulary_to_csv
## Usage
````ruby
require 'vocabulary_to_csv'# Create an instance of VocabularyToCSV
# Pass the vocabulary list ID
parser = VocabularyToCsv.new('271244')# Parse and save data to CSV (Examples column included by default)
parser.parse_and_save_to_csv(examples: true)
````## Contributing
Bug reports and pull requests are welcome on GitHub at https://github.com/kupolak/vocabulary_to_csv. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [code of conduct](https://github.com/kupolak/vocabulary_to_csv/blob/main/CODE_OF_CONDUCT.md).
## License
The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
Make sure to comply with Vocabulary.com's terms of service when using this gem for web scraping.
The gem assumes you are providing a valid vocabulary list ID as an argument. The use of a complete URL is not officially supported and may lead to unexpected behavior.
The gem may not work correctly if Vocabulary.com's website structure changes.
## Code of ConductEveryone interacting in the VocabularyToCsv project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/kupolak/vocabulary_to_csv/blob/main/CODE_OF_CONDUCT.md).