[extension] Add Axios, jsdom, Scrapy. Also fixes #627 #156 #217 #227

Axios: `axios/VERSION`
https://www.zenrows.com/blog/axios-user-agent#what-is-axios-user-agent

JSDOM: `Mozilla/5.0 (${process.platform || "unknown OS"}) AppleWebKit/537.36 (KHTML, like Gecko) jsdom/${jsdomVersion}`
https://github.com/jsdom/jsdom

Scrapy: `Scrapy/VERSION (+https://scrapy.org)`
https://docs.scrapy.org/en/master/topics/settings.html
This commit is contained in:
Faisal Salman
2023-08-14 12:28:36 +07:00
parent 3cb567c154
commit 6e26e38247
2 changed files with 17 additions and 1 deletions

View File

@@ -230,11 +230,19 @@ const MediaPlayers = Object.freeze({
]
});
const Modules = Object.freeze({
browser : [
// Axios/jsdom/Scrapy
[/\b(axios|jsdom|scrapy)\/([\w\.]+)/i], [NAME, VERSION, [TYPE, 'module']]
]
});
module.exports = {
Apps,
Bots,
CLIs,
ExtraDevices,
Emails,
MediaPlayers
MediaPlayers,
Modules
};