🐿️
17

I finally chose Python over JavaScript after 3 failed attempts at building a simple web scraper

The Python script worked in 12 lines while my JavaScript version was 47 lines and kept crashing on page loads, so I stuck with Python and finished the project in one evening instead of three days, has anyone else switched languages mid-project and found a totally different pace?
2 comments

Log in to join the discussion

Log In
2 Comments
wyatt862
wyatt8621d ago
That "3 failed attempts" part hit home for me. My buddy Mike was trying to scrape car listings for a side project and fought with JavaScript for like two weeks straight. He switched to Python on a Friday night and literally had his whole scraper running by Sunday morning with the same 12 line setup you're talking about. The async stuff in JavaScript was apparently making his script time out on big pages, but Python just chugged through it without any fuss.
2
the_karen
the_karen2d ago
Yeah I just saw someone's post about Python being way faster for data stuff too, their example was wild.
0