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

community: add user agent for web scraping loaders #22480

Merged
merged 4 commits into from
Jun 5, 2024

Conversation

emilienchvt
Copy link
Contributor

Description: This PR adds a USER_AGENT env variable that is to be used for web scraping. It creates a util to get that user agent and uses it in the classes used for scraping in this piece of doc. Identifying your scraper is considered a good politeness practice, this PR aims at easing it.
Issue: None
Dependencies: None
Twitter handle: None

@dosubot dosubot bot added the size:M This PR changes 30-99 lines, ignoring generated files. label Jun 4, 2024
Copy link

vercel bot commented Jun 4, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
langchain ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 5, 2024 9:01am

@dosubot dosubot bot added Ɑ: doc loader Related to document loader module (not documentation) 🤖:improvement Medium size change to existing code to handle new use-cases labels Jun 4, 2024
@eyurtsev eyurtsev self-assigned this Jun 4, 2024
@dosubot dosubot bot added the lgtm PR looks good. Use to confirm that a PR is ready for merging. label Jun 5, 2024
@eyurtsev eyurtsev disabled auto-merge June 5, 2024 15:14
@eyurtsev eyurtsev enabled auto-merge (squash) June 5, 2024 15:14
@eyurtsev eyurtsev merged commit c3d4126 into langchain-ai:master Jun 5, 2024
44 checks passed
hinthornw pushed a commit that referenced this pull request Jun 20, 2024
**Description:** This PR adds a `USER_AGENT` env variable that is to be
used for web scraping. It creates a util to get that user agent and uses
it in the classes used for scraping in [this piece of
doc](https://python.langchain.com/v0.1/docs/use_cases/web_scraping/).
Identifying your scraper is considered a good politeness practice, this
PR aims at easing it.
**Issue:** `None`
**Dependencies:** `None`
**Twitter handle:** `None`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Ɑ: doc loader Related to document loader module (not documentation) 🤖:improvement Medium size change to existing code to handle new use-cases lgtm PR looks good. Use to confirm that a PR is ready for merging. size:M This PR changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants