I recently came across a page with lots of links to txt files. I got frustrated when I wanted to look up something in these files but couldn’t because I’d have to download each one by one.
plus js friends
This returns a jquery-like object. A bunch of key-value pairs. The values being
DOM Objects. Sadly javascript doesn’t have a .values()
method like
Ruby. We could
make our own using the following function
Then
But what if there are too many? You could try
Make sure that the anchor element has a
target of _blank
or browsers will prevent so many tabs from opening.
If your browser is preventing too many tabs to open, or the site is throttling
you, simulate pagination
and repeat calls to this after incrementing start. Say start = 20
then
start = 40
and so on.
Now on to building a Full-text search engine with Postgres.
If you need help solving your business problems with software read how to hire me.