Scraping any text-based content such as text faces to be used anywhere.
Terminal-based web scraper to target HTML/XML markup and extract any meaningful content from them.
- Ruby
- Nokogiri
- HTTParty
To get a local copy up and running follow these simple example steps (◕‿◕✿).
- Have Git installed
- Your machine can run Ruby code
- Any bash to execute commands
- Clone this repository via Git Clone
- Navigate to the project folder
- Run bundle install to install project dependencies
Run:
$ irb -r ./bin/main.rb
Then add the URL to the webpage, the element you target and/or any extra processing needed. Like so:
$ faces = Scraper.new('https://textfac.es/', 'button.facebtn') do |face_tag|
face_tag.attributes['data-clipboard-text'].value
end
Finally, each time you want a new text face run:
$ faces.generate_face
Run $ rspec
👤 Author1
- GitHub: @githubhandle
- Twitter: @Panda4cs
- LinkedIn: LinkedIn
Contributions, issues, and feature requests are welcome!
Feel free to check the issues page.
Give a ⭐️ if you like this project!
This project is MIT licensed.