Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin' into feature/add-reddit-blog-po…
Browse files Browse the repository at this point in the history
…st-generator-tool
  • Loading branch information
acedward committed Feb 11, 2025
2 parents 90bfa63 + b30e5ee commit 8823845
Show file tree
Hide file tree
Showing 16 changed files with 882 additions and 64 deletions.
1 change: 1 addition & 0 deletions scripts/build_tools/system.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ export const author = "@@official.shinkai";

export const systemTools = [
"local:::__official_shinkai:::shinkai_llm_prompt_processor",
"local:::__official_shinkai:::shinkai_llm_map_reduce_processor",
"local:::__official_shinkai:::shinkai_sqlite_query_executor",
"local:::__official_shinkai:::shinkai_process_embeddings",
"local:::__official_shinkai:::shinkai_tool_config_updater",
Expand Down
Binary file added tools/reddit-scrape/banner.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added tools/reddit-scrape/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
93 changes: 93 additions & 0 deletions tools/reddit-scrape/metadata.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,93 @@
{
"name": "Reddit Scrape",
"homePage": "",
"author": "Shinkai",
"description": "A tool to scrape Reddit content using Puppeteer. Pass action as 'subreddit' to scrape a subreddit or 'post' to scrape a post. Pass the \"subreddit\" name or \"post_url\" as a string. Pass \"get_by\" as 'hot', 'new', 'top', or 'rising'. Pass \"top_time\" as 'day', 'week', 'month', 'year', or 'all'.",
"version": "1.0.0",
"keywords": [
"Reddit",
"Scraping"
],
"configurations": {
"type": "object",
"properties": {
"chromePath": {
"type": "string",
"description": "The path to the Chrome executable"
}
},
"required": [
]
},
"parameters": {
"type": "object",
"properties": {
"action": {
"type": "string",
"enum": [
"subreddit",
"post"
],
"description": "The action to perform (subreddit or post)"
},
"subreddit": {
"type": "string",
"description": "The subreddit to scrape. Required if action is 'subreddit'"
},
"get_by": {
"type": "string",
"enum": [
"hot",
"new",
"top",
"rising"
],
"description": "The way to get the posts (hot, new, top, rising)"
},
"top_time": {
"type": "string",
"enum": [
"day",
"week",
"month",
"year",
"all"
],
"description": "The time period for the top posts"
},
"post_url": {
"type": "string",
"description": "The URL of the post to scrape. Required if action is 'post'"
}
},
"required": [
"action"
]
},
"result": {
"type": "object",
"properties": {
"subreddit": {
"type": "object",
"description": "The scraped subreddit"
},
"post": {
"type": "object",
"description": "The scraped post"
}
},
"required": [
"subreddit",
"post"
]
},
"sqlTables": [],
"sqlQueries": [],
"oauth": [],
"runner": "any",
"operating_system": [
"macos",
"windows"
],
"tool_set": "reddit"
}
3 changes: 3 additions & 0 deletions tools/reddit-scrape/store.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"categoryId": "418f52b3-2eb6-431f-b953-4b5fefcd4b8f"
}
Loading

0 comments on commit 8823845

Please sign in to comment.