r/ruby • u/progapandist • May 14 '20
Foot Traffic: pure Ruby DSL for Chrome scripting based on Ferrum
https://github.com/lewagon/foot_traffic2
u/ignurant May 14 '20
Awesome addition, thanks for sharing! My professional job has me leaning on Puppeteer for a few specific tasks and I've very much wanted to get away from .js and use .rb for that stuff instead. Ferrum is a big deal to me for that -- I've been following it from the beginning!
I also wanted to commend your attractive readme. Nice work!
3
1
u/Tagonist42 May 14 '20
If you don't mind selenium and webdrivers etc., Capybara is the industry standard for web surfin' in ruby. ...it is designed primarily as a testing framework, tho
1
u/ikariusrb May 18 '20
My interest case is actually web scraping- particularly some projects scraping the result tabulation from some educational websites in order to automate some work for my wife. Do you think there's a reason to prefer this over Capybara for a purpose like that?
1
u/Tagonist42 May 18 '20
Not particularly, I'm just being a smartypants. Foot Traffic looks very well-suited to your use case.
Cool project!
1
u/Tagonist42 May 18 '20
...I've just been bitten by trying to use trendy libraries before. In a shared codebase with changing requirements, the reduced documentation/featureset/compatibility usually offsets the better immediate individual productivity. But that's not your case!
2
1
u/designium May 15 '20
I can’t wait to try.
I use Selenium-Capybara and it was a pain to setup chrome webdriver in headless mode.
But with Selenium you can use other browsers though.
1
u/harsh183 May 14 '20
Anything like this for Firefox?