Over the years, I&#x27;ve had many projects that involve Web scraping with public health or academic research imperatives. These projects went from text to element retrieval to entity recognition and annotations, so I&#x27;ve learned a lot, but am frustrated since I&#x27;ve never found a way to carry work forward. My most recent attempt became SenseBase[1], which worked well for the most part with some leading features, but I want to work with something easier to support.<p>I&#x27;m facing a couple more scraping projects, which are not my full-time focus, so I&#x27;d like to find some loosely coupled yet cohesive components which will work for years.<p>I&#x27;ve settled on Javascript as a language and ecosystem that is likely to be around for some time, and practical to use for Web scraping, particularly since it can be embedded in pages (and speaks the page language).<p>I&#x27;m strongly committed to open source and open data (I&#x27;d like to see all sites recognize the value of making their sites into data).<p>Here&#x27;s what I&#x27;d identify as components:<p>1. Shared schemas and functions to identify sites, their sections, and content elements.<p>2. Identify when a site has an API that relates to a page, to retrieve more precise data.<p>3. A robust and easy to maintain store for original text and annotations.<p>4. A programming language neutral way to interact with 3.<p>I&#x27;m looking for something as lightweight as possible. A front end is separate, the goal is schemas and a store that can be developed and interacted with over years.<p>Semantic Web solutions would handle 3, but add so much weight the project becomes diverted. In the past I&#x27;ve used ElasticSearch, which worked fine, but I&#x27;m considering LevelDB as projects built on it seem to support useful text and annotation capabilities. Using the Open Annotation spec seems reasonable with an appropriate library.<p>I know this is a tough general problem. Thanks for any comments.<p>1. https:&#x2F;&#x2F;github.com&#x2F;vid&#x2F;SenseBase
Best JavaScript scraping infrastructure