Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add more bot platforms #542

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
99 changes: 99 additions & 0 deletions src/parser-platforms.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,105 @@ export default [
},
},

/* AmazonBot */
{
test: [/Amazonbot/i],
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

describe() {
return {
type: PLATFORMS_MAP.bot,
vendor: 'Amazon',
};
},
},

/* Baidu */
{
test: [/baiduspider/i],
Copy link
Contributor Author

@luciomartinez luciomartinez Aug 21, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

describe() {
return {
type: PLATFORMS_MAP.bot,
vendor: 'Baidu',
};
},
},

/* Bingbot */
{
test: [/bingbot/i],
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

describe() {
return {
type: PLATFORMS_MAP.bot,
vendor: 'Bing',
};
},
},

/* DuckDuckBot */
{
test: [/duckduckbot/i],
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

describe() {
return {
type: PLATFORMS_MAP.bot,
vendor: 'DuckDuckGo',
};
},
},

/* Internet Archive Crawler */
{
test: [/ia_archiver/i],
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

describe() {
return {
type: PLATFORMS_MAP.bot,
vendor: 'Internet Archive',
};
},
},

/* Meta Web Crawler */
{
test: [/facebookexternalhit/i, /facebookcatalog/i],
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

describe() {
return {
type: PLATFORMS_MAP.bot,
vendor: 'Meta',
};
},
},

/* Yahoo! Slurp */
{
test: [/yahoo/i],
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

describe() {
return {
type: PLATFORMS_MAP.bot,
vendor: 'Yahoo',
};
},
},

/* Yandex */
{
test: [/yandexbot/i],
describe() {
return {
type: PLATFORMS_MAP.bot,
vendor: 'Yandex',
};
},
},

/* Pingdom */
{
test: [/pingdom/i],
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Best guest I suppose 🙂

describe() {
return {
type: PLATFORMS_MAP.bot,
vendor: 'Pingdom',
};
},
},

/* Huawei */
{
test: [/huawei/i],
Expand Down
Loading