scraper
VimMode.spoon
Our great sponsors
scraper | VimMode.spoon | |
---|---|---|
12 | 14 | |
98 | 657 | |
- | - | |
0.0 | 0.0 | |
about 1 year ago | about 1 year ago | |
TypeScript | Lua | |
MIT License | - |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
scraper
- Most Used Individual JavaScript Libraries - jQuery still leads
-
Most Used JavaScript Libraries (percentage) - June 2022 [OC]
Additional info and source code for generating the dataset, summarizing it and rendering the chart are available at https://github.com/get-set-fetch/scraper/tree/main/datasets/javascript-libs-from-top-1mm-sites
-
How to collaborate on web scraping?
Store the scrape progress (to-be-scraped / in-progress / scraped / in-error URLs) in a database shared by all participants and scrape in parallel with as many machines as the db load permits. Got a connection timeout / IP is blocked on one machine ? Update the scrape status for the corresponding URL and let another machine retry it. https://github.com/get-set-fetch/scraper (written in typescript) follows this idea. Using Terraform from a simple config file you can adjust the number of scraper instances to be deployed in cloud at startup and during the scraping process. In benchmarks a PostgreSQL server running on a DigitalOcean vm with 4vCPU, 8GB memory allows for ~2000 URLs to be scraped per second (synthetic data, no external traffic). From my own experience this is almost never the bottleneck. Obeying robots.txt crawl-delay will surely put you under this limit. Disclaimer: I'm the npm package author.
-
How to serve scrapped data?
Written in typescript https://github.com/get-set-fetch/scraper stores scraped content directly in a database (sqlite, mysql, postgresql). Each URL represents a Resource. You can implement your own IResourceStorage and define the exact db columns you need.
-
How to scrape entire blogs with content?
You can use https://github.com/get-set-fetch/scraper with a custom plugin based on the mozilla/readability as detailed in https://getsetfetch.org/node/custom-plugins.html (extracting news article content). I think it's a close match to your use case.
-
A simple solution to rotate proxies or how to spin up your own rotation proxy server with Puppeteer and only a few lines of JS code
I'm currently implementing concurrency conditions at project/proxy/domain/session level in https://github.com/get-set-fetch/scraper . On each level you can define the maximum number of requests and the delay between two consecutive requests.
-
Web scraping content into postgresql? Scheduling web scrapers into a pipeline with airflow?
If you're familiar with nodejs give https://github.com/get-set-fetch/scraper a try. Scraped content can be stored in sqlite, mysql or postgresql. It also supports puppeteer, playwright, cheerio or jsdom for the actual content extraction. No scheduler though.
-
Web Scraping 101 with Python
I'm using this exact strategy to scrape content directly from DOM using APIs like document.querySelectorAll. You can use the same code in both headless browser clients like Puppeteer or Playwright and DOM clients like cheerio or jsdom (assuming you have a wrapper over document API). Depending on the way a web page was fetched (opened in a browser tab or fetched via nodejs http/https requests), ExtractHtmlContentPlugin, ExtractUrlsPlugin use different DOM wrappers (native, cheerio, jsdom) to scrape the content.
[1] https://github.com/get-set-fetch/scraper/blob/main/src/plugi...
-
What is your “I don't care if this succeeds” project?
https://github.com/get-set-fetch/scraper - I've been working (intermittently :) ) on a nodejs or browser extension scraper for the last 3 years, see the other projects under the get-set-fetch umbrella. Putting a lot more effort lately as I really want to do those Alexa top 1 million analysis like top js libraries, certificate authorities and so on. A few weeks back I've posted on Show:HN as you can do basic/intermediate? scraping with it.
Not capable of handling 1 mil+ pages as it still limited to puppeteer or playwright. Working on adding cheerio/jsdom support right now.
VimMode.spoon
-
Ask HN: Small scripts, hacks and automations you're proud of?
- https://github.com/dbalatero/VimMode.spoon - Vim mode everywhere
-
I think I've been poisoned by something called vim
VimMode.spoon (open source, free)
-
VI-bindings everywhere - does it exist?
I have a Hammerspoon plugin that does a fairly decent job: https://github.com/dbalatero/VimMode.spoon
-
History and Effective Use of Vim
A friend of mine I met through my own similar (free) library is developing this like a madman: https://kindavim.app
It costs $3/month (coffee) but for a Vim person like me I gladly pay. Making this work across macOS is a total mess and a full-time job, and it's not trivial work.
If you want a free version, I have https://github.com/dbalatero/VimMode.spoon as a Hammerspoon plugin that works pretty OK, but I'm not actively developing it and prefer the kindaVim app at this point.
-
after kindaVim that adds Vim moves to any UI element on macOS, here's my second app: Wooshy. reach those UI elements through searching the whole macOS UI.
there's some free solutions out there like Karabiner-Elements(https://karabiner-elements.pqrs.org) (but doesn't manipulate/calculate text, just key mapping) and VimMode.spoon (https://github.com/dbalatero/VimMode.spoon). if you don't wanna bother with setting those up there's also one-time payment stuff, that are basically wrappers around Karabiner Elements.
- Vim for the whole macOS—kindaVim stable is out: Vim motions in UI, native apps, browsers, Electron apps, etc.
-
How to rebind a combination of keys?
I wrote this to handle a 2 letter key sequence being pressed (to support jk entering vim mode): https://github.com/dbalatero/VimMode.spoon/blob/master/lib/key_sequence.lua
-
Win-Vind: Become an instant ninja in operating Windows at the speed of thought
Love to see this windows project! If anyone wants some MacOS Vim functionality everywhere, I have a small library I maintain for that: https://github.com/dbalatero/VimMode.spoon
-
if you're on macOS and you love Vim so much that you want it anywhere 🔥️🔥️🔥️
Better solution: https://github.com/cknadler/vim-anywhere, for neovim users (and probably vim users) you can utilize some apple script as well: https://blog.schembri.me/post/neovim-everywhere-on-macos/. For those of you who want to try org-mode and evil, https://github.com/tecosaur/emacs-everywhere is awesome. And if you don't want to use an editor, a similar project (using Hammerspoon) is available here: https://github.com/dbalatero/VimMode.spoon
-
Vim moves to macOS.
and also let's not forget the awesome VimMode.spoon from dbalatero: https://github.com/dbalatero/VimMode.spoon
What are some alternatives?
puppeteer-cluster - Puppeteer Pool, run a cluster of instances in parallel
vopono - Run applications through VPN tunnels with temporary network namespaces
playwright-recaptcha-solver - ReCaptcha V2 solver for Playwright
scraper - A scraper for EmulationStation written in Go using hashing
playwright-python - Python version of the Playwright testing and automation library.
vimac - Productive macOS keyboard-driven navigation
pyppeteer - Headless chrome/chromium automation library (unofficial port of puppeteer)
firenvim - Embed Neovim in Chrome, Firefox & others.
Twitch-Drops-Bot - A Node.js bot that will automatically watch Twitch streams and claim drop rewards.
go-plugin - Golang plugin system over RPC.
exomind - A personal knowledge management tool hosted on your own personal cloud