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 a metadata property to reflect general purpose of the UA #169

Open
claytonrothschild opened this issue Mar 14, 2019 · 4 comments
Open

Comments

@claytonrothschild
Copy link

Hi,

Great library!

I am using this with a React app to return a static site if the UA is a scraper rather than a human viewer. The reason is that many scrapers used by sharing UA like Facebook/Twitter/Slack do not render javascript, so my app content does not preview correctly.

It would be very helpful if we could sort and designate which UAs are used for which general purpose. For example, I thought I had captured all the UAs that are typically used by social sites to render preview links, but a user just sent me a screenshot of a Messenger message where the preview did not render correctly. This is because I had not configured my app to return static for that particular UA.

I think a simple property of general_purpose: would be helpful. With options of browser, scrape: search, scrape: preview_render, etc.

What do you think?

@monperrus
Copy link
Owner

monperrus commented Mar 16, 2019 via email

@jarodium
Copy link

jarodium commented Apr 27, 2020

I would like to also propose a key called robotstxt ( or similar ) with the user agent that is commonly used to add in robots txt. This value could be comma separated, especially when in the case of:

"pattern": "[wW]get", that could yield two rules.

Then, this list could be used as a base for automated generation of robots txt as well as a base for logfile analysis. xD

@monperrus
Copy link
Owner

Excellent idea, see #265

@chjlsch
Copy link

chjlsch commented Sep 21, 2022

Maybe using "Open Graph Meta Tags" would help you. The official site is ogp.me (stands for open graph protocol).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants