Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit e826057

Browse filesBrowse files
authored
Create README.md
1 parent 231e940 commit e826057
Copy full SHA for e826057

File tree

Expand file treeCollapse file tree

1 file changed

+24
-0
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+24
-0
lines changed

‎README.md

Copy file name to clipboard
+24Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# Topics Adder
2+
3+
This is a Python script that allows you to add random topics to a GitHub repository using the GitHub API.
4+
5+
## Installation
6+
7+
1. Clone this repository using `git clone https://github.com/your_username/your_repository_name.git`.
8+
2. Change into the cloned directory using `cd your_repository_name`.
9+
3. Install the required dependencies using ```pip install os random requests```.
10+
11+
## Usage
12+
13+
1. Replace `your_username` and `your_repository_name` with your actual GitHub username and repository name, respectively.
14+
2. Set your GitHub access token as an environment variable named `ACCESS_TOKEN`.
15+
3. Create a wordlist of topics in a file named `wordlist.txt`, with one topic per line.
16+
4. Run the script using `python topics_adder.py`.
17+
18+
The script will select 20 random topics from your `wordlist.txt` file, and add them to your repository's topics using the GitHub API. The topics will be added every 20 seconds until the script is terminated.
19+
20+
## Wordlist Validator
21+
22+
The `wordlist_validator.py` script can be used to validate the contents of your `wordlist.txt` file. It will load the file, remove any special characters and spaces from each topic, and check if they are valid topics according to the GitHub API's naming conventions. It will then output the list of valid topics and overwrite your `wordlist.txt` file with only the valid topics.
23+
24+
To use the `wordlist_validator.py` script, simply run ```python wordlist_validator.py```. The script will output the list of valid topics to the console and overwrite your `wordlist.txt` file with only the valid topics.

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.