Baike.dev
All toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
L

loklak_scraper_js

> 编程语言
Open source

Scrapers for loklak in javascript

1.5K stars0 likes0 views
WebsiteGitHub

About

Scrapers for loklak in javascript

loklak_scraper_js

Scrapers for loklak in javascript

The idea is, that loklak and its scrapers (i.e. in loklak_server, loklak_wok, a possible loklak_wok_ios and a possible scraper in a web page integration) all use the same common code base.

That code shall be placed here in the scraper subdirectory. Each file in that subdirectory should be named by the scraper target (like twitter.js)

Execution of the scrapers must output a json very like to a loklak search result - without the enrichments that the scrapers also implement. I.e. there is no need to integrate a link de-shortener, that must be implemented in the loklak application itself.

Example

There is an example file scrapers/example.js which has just a static output of a json object. You would just have to implement the same behavior for the other scrapers.

I.e.:

node scrapers/example.js

outputs a json object. all other scrapers must do the same but just take a query attribute.

Installing dependencies

This project uses request library to request for web pages and cheerio library to scrape. These libraries can be installed as shown below.

cd loklak_scraper_js
npm install

The dependencies will now be installed in node_modules directory

Quora profile scraper (quora.js)

The Quora profile scraper takes a single argument that is the name of the profile to scrape and outputs the scrapped data as a json object.

node scrapers/quora.js <profile_name>

For example:

…

GitHub Issues· 0 open

View all on GitHub

No open issues yet, or sync has not completed.

Highlights

  • •JavaScript

> Tags

JavaScript

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 17, 2026
Category编程语言
PricingOpen source

> Related tools

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言