Skip to content
Open
Show file tree
Hide file tree
Changes from all 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
106 changes: 106 additions & 0 deletions .vscode/PythonImportHelper-v2-Completion.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,38 @@
[
{
"label": "requests",
"kind": 6,
"isExtraImport": true,
"importPath": "requests",
"description": "requests",
"detail": "requests",
"documentation": {}
},
{
"label": "BeautifulSoup",
"importPath": "bs4",
"description": "bs4",
"isExtraImport": true,
"detail": "bs4",
"documentation": {}
},
{
"label": "BeautifulSoup",
"importPath": "bs4",
"description": "bs4",
"isExtraImport": true,
"detail": "bs4",
"documentation": {}
},
{
"label": "json",
"kind": 6,
"isExtraImport": true,
"importPath": "json",
"description": "json",
"detail": "json",
"documentation": {}
},
{
"label": "os",
"kind": 6,
Expand Down Expand Up @@ -52,6 +86,78 @@
"detail": "numpy",
"documentation": {}
},
{
"label": "url",
"kind": 5,
"importPath": "github_fork_finder",
"description": "github_fork_finder",
"peekOfCode": "url = \"https://github.com/f/awesome-chatgpt-prompts/network/members\"\nresponse = requests.get(url)\nsoup = BeautifulSoup(response.content, \"html.parser\")\n# Find all the fork URLs on the page\nfork_urls = []\nfor element in soup.find_all(\"a\", class_=\"muted-link\"):\n if \"Forks\" in element.text or 'chatgpt' in element.text:\n fork_urls.append(element[\"href\"]) # element[\"href\"] is the URL of the fork\n print(element[\"href\"])\n# save the links to a file",
"detail": "github_fork_finder",
"documentation": {}
},
{
"label": "response",
"kind": 5,
"importPath": "github_fork_finder",
"description": "github_fork_finder",
"peekOfCode": "response = requests.get(url)\nsoup = BeautifulSoup(response.content, \"html.parser\")\n# Find all the fork URLs on the page\nfork_urls = []\nfor element in soup.find_all(\"a\", class_=\"muted-link\"):\n if \"Forks\" in element.text or 'chatgpt' in element.text:\n fork_urls.append(element[\"href\"]) # element[\"href\"] is the URL of the fork\n print(element[\"href\"])\n# save the links to a file\nwith open(\"fork_urls.txt\", \"w\") as f:",
"detail": "github_fork_finder",
"documentation": {}
},
{
"label": "soup",
"kind": 5,
"importPath": "github_fork_finder",
"description": "github_fork_finder",
"peekOfCode": "soup = BeautifulSoup(response.content, \"html.parser\")\n# Find all the fork URLs on the page\nfork_urls = []\nfor element in soup.find_all(\"a\", class_=\"muted-link\"):\n if \"Forks\" in element.text or 'chatgpt' in element.text:\n fork_urls.append(element[\"href\"]) # element[\"href\"] is the URL of the fork\n print(element[\"href\"])\n# save the links to a file\nwith open(\"fork_urls.txt\", \"w\") as f:\n for url in fork_urls:",
"detail": "github_fork_finder",
"documentation": {}
},
{
"label": "fork_urls",
"kind": 5,
"importPath": "github_fork_finder",
"description": "github_fork_finder",
"peekOfCode": "fork_urls = []\nfor element in soup.find_all(\"a\", class_=\"muted-link\"):\n if \"Forks\" in element.text or 'chatgpt' in element.text:\n fork_urls.append(element[\"href\"]) # element[\"href\"] is the URL of the fork\n print(element[\"href\"])\n# save the links to a file\nwith open(\"fork_urls.txt\", \"w\") as f:\n for url in fork_urls:\n f.write(url + \"\\n\")\n# Iterate through each fork URL and scrape the contents of the \"readme.md\" file",
"detail": "github_fork_finder",
"documentation": {}
},
{
"label": "url",
"kind": 5,
"importPath": "github_search",
"description": "github_search",
"peekOfCode": "url = \"https://api.github.com/search/repositories?q=chatgpt+in:readme\"\nresponse = requests.get(url)\n# Parse the JSON response\ndata = json.loads(response.text)\n# Iterate through the list of repositories and store the URLs in a list\nrepo_urls = []\nfor repo in data[\"items\"]:\n repo_urls.append(repo[\"html_url\"])\n# save repo_urls to a file\nwith open(\"repo_urls.txt\", \"w\") as f:",
"detail": "github_search",
"documentation": {}
},
{
"label": "response",
"kind": 5,
"importPath": "github_search",
"description": "github_search",
"peekOfCode": "response = requests.get(url)\n# Parse the JSON response\ndata = json.loads(response.text)\n# Iterate through the list of repositories and store the URLs in a list\nrepo_urls = []\nfor repo in data[\"items\"]:\n repo_urls.append(repo[\"html_url\"])\n# save repo_urls to a file\nwith open(\"repo_urls.txt\", \"w\") as f:\n for url in repo_urls:",
"detail": "github_search",
"documentation": {}
},
{
"label": "data",
"kind": 5,
"importPath": "github_search",
"description": "github_search",
"peekOfCode": "data = json.loads(response.text)\n# Iterate through the list of repositories and store the URLs in a list\nrepo_urls = []\nfor repo in data[\"items\"]:\n repo_urls.append(repo[\"html_url\"])\n# save repo_urls to a file\nwith open(\"repo_urls.txt\", \"w\") as f:\n for url in repo_urls:\n f.write(url + \"\\n\")\n# Iterate through each repository URL and use Beautiful Soup to scrape the contents of the page",
"detail": "github_search",
"documentation": {}
},
{
"label": "repo_urls",
"kind": 5,
"importPath": "github_search",
"description": "github_search",
"peekOfCode": "repo_urls = []\nfor repo in data[\"items\"]:\n repo_urls.append(repo[\"html_url\"])\n# save repo_urls to a file\nwith open(\"repo_urls.txt\", \"w\") as f:\n for url in repo_urls:\n f.write(url + \"\\n\")\n# Iterate through each repository URL and use Beautiful Soup to scrape the contents of the page\nfor url in repo_urls:\n page = requests.get(url)",
"detail": "github_search",
"documentation": {}
},
{
"label": "make_a_prompt",
"kind": 2,
Expand Down
17 changes: 15 additions & 2 deletions data/prompts/prompt.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,32 @@ I want you to act as a prompt generator. Firstly, I will give you a title like t
(You should adapt the sample prompt according to the title I gave. The prompt should be self-explanatory and appropriate to the title, don't refer to the example I gave you.). You will use the phrase "Your task is to create an outline for the code required for the project" in your response.
My first title is "A professional programmer with VSCode development experience that uses python, and can create extensions" (Give me prompt only)
My first sentence is "This VSCode extension analyzes changes to files and automatically creates commit messages. "


I want you to act as a prompt generator. Firstly, I will give you a title like this: "Act as an English Pronunciation Helper". Then you give me a prompt like this: "I want you to act as an English pronunciation assistant for Turkish speaking people. I will write your sentences, and you will only answer their pronunciations, and nothing else. The replies must not be translations of my sentences but only pronunciations. Pronunciations should use Turkish Latin letters for phonetics. Do not write explanations on replies.
(You should adapt the sample prompt according to the title I gave. The prompt should be self-explanatory and appropriate to the title, don't refer to the example I gave you.).
You will use the phrase "Your task is to create an outline for the code required for the project" in your response, but should not be limited to this phrase only, as it is a guideline.

My first title is "A linkedin networking professional" (Give me prompt only)
My first sentence is "optimizing your linkedin page for maximum efficacy in job hunting "


I want you to act as a prompt generator. Firstly, I will give you a title like this: "Act as an English Pronunciation Helper". Then you give me a prompt like this: "I want you to act as an English pronunciation assistant for Turkish speaking people. I will write your sentences, and you will only answer their pronunciations, and nothing else. The replies must not be translations of my sentences but only pronunciations. Pronunciations should use Turkish Latin letters for phonetics. Do not write explanations on replies.
(You should adapt the sample prompt according to the title I gave. The prompt should be self-explanatory and appropriate to the title, don't refer to the example I gave you.).
You will use the phrase "Your task is to create an outline for the code required for the project" in your response, but should not be limited to this phrase only, as it is a guideline.
My first title is "A professional coder with expertise in creating GitHub Repositories with badging." (Give me prompt only)
My first sentence is "Create the badges for issues, and relevant badging for a repo format as a markdown block. "


I want you to act as a prompt generator. Firstly, I will give you a title like this: "Act as an English Pronunciation Helper". Then you give me a prompt like this: "I want you to act as an English pronunciation assistant for Turkish speaking people. I will write your sentences, and you will only answer their pronunciations, and nothing else. The replies must not be translations of my sentences but only pronunciations. Pronunciations should use Turkish Latin letters for phonetics. Do not write explanations on replies.
(You should adapt the sample prompt according to the title I gave. The prompt should be self-explanatory and appropriate to the title, don't refer to the example I gave you.).
You will use the phrase "Your task is to create an outline for the code required for the project" in your response, but should not be limited to this phrase only, as it is a guideline.
My first title is "A professional prompt writer for chatGPT with the ability to maximize the power of Large Language Models." (Give me prompt only)


I want you to act as a prompt generator.
Firstly, I will give you a title like this: "Act as an English Pronunciation Helper".
Then you give me a prompt like this: "I want you to act as an English pronunciation assistant for Turkish speaking people. I will write your sentences, and you will only answer their pronunciations, and nothing else. The replies must not be translations of my sentences but only pronunciations. Pronunciations should use Turkish Latin letters for phonetics. Do not write explanations on replies.
(You should adapt the sample prompt according to the title I gave. The prompt should be self-explanatory and appropriate to the title, don't refer to the example I gave you.).
Your title is: web scraping professional using requests, beautiful soup, and python, This prompt should be to solve this problem: Using GitHub's API OR requests with selenium, identify repositories on GitHub that contain lists of chatGPT prompts and coallate these into a unified directory., and it should start with this sentence: Outline the codebase for this project using code blocks.

Empty file added fork_urls.txt
Empty file.
39 changes: 39 additions & 0 deletions github_fork_finder.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
# # https://github.com/f/awesome-chatgpt-prompts/network/members
# go to each of the fork urls at the url above and scrape the readme.md file for the prompts.

import requests
from bs4 import BeautifulSoup
import json

# Use requests to access the GitHub API and search for repositories containing "chatgpt" in the readme file
url = "https://github.com/f/awesome-chatgpt-prompts/network/members"
response = requests.get(url)
soup = BeautifulSoup(response.content, "html.parser")

# Find all the fork URLs on the page
fork_urls = []
for element in soup.find_all("a", class_="muted-link"):
if "Forks" in element.text or 'chatgpt' in element.text:
fork_urls.append(element["href"]) # element["href"] is the URL of the fork
print(element["href"])


# save the links to a file
with open("fork_urls.txt", "w") as f:
for url in fork_urls:
f.write(url + "\n")

# Iterate through each fork URL and scrape the contents of the "readme.md" file
# prompts = []
# for fork_url in fork_urls:
# readme_url = fork_url + "/readme.md"
# readme_response = requests.get(readme_url)
# readme_soup = BeautifulSoup(readme_response.content, "html.parser")
# # Use Beautiful Soup to find specific elements on the page (e.g. file names containing "prompts")
# # and store the data in a list
# for element in readme_soup.find_all("p"):
# if "prompts" in element.text:
# prompts.append(element.text)

# Print the list of prompts
# print(prompts)
36 changes: 36 additions & 0 deletions github_search.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
import requests
from bs4 import BeautifulSoup
import json

# Use requests to access the GitHub API and search for repositories containing "chatgpt" in the name
# url = "https://api.github.com/search/repositories?q=chatgpt+in:name"
url = "https://api.github.com/search/repositories?q=chatgpt+in:readme"
response = requests.get(url)

# Parse the JSON response
data = json.loads(response.text)

# Iterate through the list of repositories and store the URLs in a list
repo_urls = []
for repo in data["items"]:
repo_urls.append(repo["html_url"])

# save repo_urls to a file
with open("repo_urls.txt", "w") as f:
for url in repo_urls:
f.write(url + "\n")

# Iterate through each repository URL and use Beautiful Soup to scrape the contents of the page
for url in repo_urls:
page = requests.get(url)
soup = BeautifulSoup(page.content, "html.parser")

# Use Beautiful Soup to find specific elements on the page (e.g. file names containing "prompts")
# and store the data in a list
prompts = []
for element in soup.find_all("a", class_="js-navigation-open"):
if "prompts" in element.text:
prompts.append(element.text)

# Print the list of prompts
print(prompts)
16 changes: 11 additions & 5 deletions prompt_generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,19 @@ def make_a_prompt():
)
first_sentence = input("Enter your first sentence: ")
print("-" * 50)
the_prompt = """I want you to act as a prompt generator. Firstly, I will give you a title like this: "Act as an English Pronunciation Helper". Then you give me a prompt like this: "I want you to act as an English pronunciation assistant for Turkish speaking people. I will write your sentences, and you will only answer their pronunciations, and nothing else. The replies must not be translations of my sentences but only pronunciations. Pronunciations should use Turkish Latin letters for phonetics. Do not write explanations on replies.
print(f'Received: "{first_sentence}", excellent choice!\n')
print("Now, what problem would you like chatGPT to solve?\n")
this_problem = input("Enter your problem: ")
print("-" * 50)


the_prompt = """I want you to act as a prompt generator.
Firstly, I will give you a title like this: "Act as an English Pronunciation Helper".
Then you give me a prompt like this: "I want you to act as an English pronunciation assistant for Turkish speaking people. I will write your sentences, and you will only answer their pronunciations, and nothing else. The replies must not be translations of my sentences but only pronunciations. Pronunciations should use Turkish Latin letters for phonetics. Do not write explanations on replies.
(You should adapt the sample prompt according to the title I gave. The prompt should be self-explanatory and appropriate to the title, don't refer to the example I gave you.).
You will use the phrase "Your task is to create an outline for the code required for the project" in your response, but should not be limited to this phrase only, as it is a guideline.
My first title is "{}" (Give me prompt only)
My first sentence is "{}"
Your title is: {}, This prompt should be to solve this problem: {}, and it should start with this sentence: {}
""".format(
bot_type, first_sentence
bot_type, this_problem, first_sentence
)
# save the prompt to a text file in data/prompts, if data/prompts doesn't exist, create it
if not os.path.exists("data/prompts"):
Expand Down
30 changes: 30 additions & 0 deletions repo_urls.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
https://github.com/acheong08/ChatGPT
https://github.com/wong2/chat-gpt-google-extension
https://github.com/lencx/ChatGPT
https://github.com/humanloop/awesome-chatgpt
https://github.com/GitHubDaily/GitHubDaily
https://github.com/m1guelpf/chatgpt-telegram
https://github.com/fuergaosi233/wechat-chatgpt
https://github.com/transitive-bullshit/chatgpt-api
https://github.com/mpociot/chatgpt-vscode
https://github.com/gragland/chatgpt-chrome-extension
https://github.com/AutumnWhj/ChatGPT-wechat-bot
https://github.com/danielgross/whatsapp-gpt
https://github.com/vincelwt/chatgpt-mac
https://github.com/terry3041/pyChatGPT
https://github.com/mmabrouk/chatgpt-wrapper
https://github.com/altryne/chatGPT-telegram-bot
https://github.com/Zero6992/chatGPT-discord-bot
https://github.com/skydoves/chatgpt-android
https://github.com/adrianhajdin/project_openai_codex
https://github.com/Kamigami55/awesome-chatgpt
https://github.com/liady/ChatGPT-pdf
https://github.com/ChatGPT-Hackers/ChatGPT-API-server
https://github.com/sonnylazuardi/chatgpt-desktop
https://github.com/labteral/chatgpt-python
https://github.com/kazuki-sf/ChatGPT_Extension
https://github.com/ZohaibAhmed/ChatGPT-Google
https://github.com/qunash/chatgpt-advanced
https://github.com/kazuki-sf/YouTube_Summary_with_ChatGPT
https://github.com/A-kirami/nonebot-plugin-chatgpt
https://github.com/djun/wechatbot
Loading