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

Extract descriptions from directory #14

Open
chris-y opened this issue Jun 21, 2024 · 3 comments
Open

Extract descriptions from directory #14

chris-y opened this issue Jun 21, 2024 · 3 comments
Assignees
Labels
enhancement New feature or request

Comments

@chris-y
Copy link
Contributor

chris-y commented Jun 21, 2024

Maybe scrape the communities and descriptions from the directory posts, rather than the community descriptions and a separately maintained file.

Even if we convert to a useful format locally that will be better then having to maintain two things.

@M4rtineski
Copy link
Contributor

Maybe a github script that automatically merges the directory parts into one full directory github file and then scrape the communities and descriptions from there? Not sure if it would be less or more work. lmao

@chris-y
Copy link
Contributor Author

chris-y commented Jun 24, 2024

I've created an action in lemmy-directory which extracts the communities into the individual JSON files that this bot reads. It updates them when you push to that repo and creates a PR here (so we can check nothing has broken before merging). (it all shows up under my name which is annoying but the only way I could give it enough access)

In future this can be expanded to extract the descriptions too.

@chris-y chris-y self-assigned this Jun 24, 2024
@chris-y chris-y added the enhancement New feature or request label Jun 24, 2024
@chris-y
Copy link
Contributor Author

chris-y commented Jun 25, 2024

I've fixed the action so it has a bot account rather than masquerading as me.

@chris-y chris-y changed the title Descriptions and communities Extract descriptions from directory Jul 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants