Search engine term generator for finding audience watering holes (based on terms *you come up with*) [30x500]
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
[ | |
".NET", | |
".NET Core", | |
"ASP.NET", | |
"ASP.NET Core", | |
"C#", | |
"F#", | |
"VB.NET" | |
], | |
[ | |
"developer", | |
"engineer", | |
"programmer", | |
"architect" | |
], | |
[ | |
"forum", | |
"mailing list", | |
"community", | |
"group", | |
"Twitter", | |
"list", | |
"Facebook", | |
"share", | |
"sharing", | |
"chat", | |
"IRC", | |
"blog", | |
"best", | |
"resources", | |
"tutorials", | |
"help", | |
"FAQs", | |
"reviews", | |
"questions", | |
"wiki", | |
"meetup", | |
"user group", | |
"advice", | |
"awards", | |
"competition", | |
"problems", | |
"association", | |
"customers", | |
"client", | |
"sales", | |
"tools", | |
"system" | |
] | |
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
import sys | |
import json | |
import itertools | |
from typing import List | |
def main(progname: str, args: List[str]): | |
if len(args) == 0: | |
sys.exit(f"Usage: {progname} path/to/audience_terms.json") | |
input_path = args[0] | |
data = None | |
with open(input_path, 'r') as f: | |
data = json.load(f) | |
if data is None: | |
sys.exit(f"Error: {input_path} must be valid UTF-8 JSON") | |
for tup in itertools.product(*data): | |
print(' '.join(tup)) | |
if __name__ == '__main__': | |
main(sys.argv[0], sys.argv[1:]) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
How to use this script:
Alternatively set the file to be executable then run it directly:
Example output given the
audience_terms.json
included in the gist: