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

Scraping #30

Open
irthomasthomas opened this issue Sep 6, 2023 · 6 comments
Open

Scraping #30

irthomasthomas opened this issue Sep 6, 2023 · 6 comments
Labels
prompt Collection of llm prompts and notes shell-script shell scripting in Bash, ZSH, POSIX etc

Comments

@irthomasthomas
Copy link
Owner

No description provided.

@irthomasthomas irthomasthomas added programming prompt Collection of llm prompts and notes shell-script shell scripting in Bash, ZSH, POSIX etc labels Sep 6, 2023
@irthomasthomas
Copy link
Owner Author

irthomasthomas commented Sep 6, 2023

https://github.com/platisd/sycophant/blob/master/sycophant.py
Good example of scraping > summarization > publishing pipeline.

@irthomasthomas
Copy link
Owner Author

If you weren't already aware, Scrapy has strong support for this via their HTTPCache middleware; you can choose whether to have it actually behave like a cache, choosing to returned already scraped content if matched or merely to act as a pass-through cache: https://docs.scrapy.org/en/2.7/topics/downloader-middleware....

Their OOtB storage does what the sibling comment says about sha1-ing the request and then sharding the output filename by the first two characters: https://github.com/scrapy/scrapy/blob/2.7.1/scrapy/extension...

https://news.ycombinator.com/item?id=33564138

@irthomasthomas
Copy link
Owner Author

List of crawling and scraping tools. Not updated for 6 years, though.

@irthomasthomas
Copy link
Owner Author

irthomasthomas commented Sep 13, 2023

curl -s https://api.github.com/repos/jiaaro/pydub/commits | jq -r '.[0] |  .commit.message, .commit.author.date'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
prompt Collection of llm prompts and notes shell-script shell scripting in Bash, ZSH, POSIX etc
Projects
None yet
Development

No branches or pull requests

1 participant