Discuss Scratch

SavetheAtlantic
Scratcher
1000+ posts

The 7th Suggestion Directory

I have a spreadsheet of every topic in the Suggestions forum posted on at least once in the past year. I'm not sure how I could share it though.
imfh
Scratcher
1000+ posts

The 7th Suggestion Directory

SavetheAtlantic wrote:

I have a spreadsheet of every topic in the Suggestions forum posted on at least once in the past year. I'm not sure how I could share it though.
I could pull the data from ScratchDB if I wanted it. I'm not sure that I do, though. It would be very difficult to write a description for every topic and it would also take up a lot of room.

I'm going to stick with the previous rule of at least 2 pages and must have duplicates if not 4 pages for now. With the script, it wouldn't be hard to get rid of those rules, but adding topics with just 1 or 2 posts isn't necessarily a good thing.
SavetheAtlantic
Scratcher
1000+ posts

The 7th Suggestion Directory

imfh wrote:

SavetheAtlantic wrote:

I have a spreadsheet of every topic in the Suggestions forum posted on at least once in the past year. I'm not sure how I could share it though.
I could pull the data from ScratchDB if I wanted it. I'm not sure that I do, though. It would be very difficult to write a description for every topic and it would also take up a lot of room.

I'm going to stick with the previous rule of at least 2 pages and must have duplicates if not 4 pages for now. With the script, it wouldn't be hard to get rid of those rules, but adding topics with just 1 or 2 posts isn't necessarily a good thing.
Of course. I scraped the data from the forum pages themselves, so you can sort by the number of replies. The issue is; it doesn't come with links and it doesn't specify if the topics are closed. I just thought it might be helpful since the directory really hasn't been expanded much to include newer suggestions in the past few years.
roofogato
Scratcher
1000+ posts

The 7th Suggestion Directory

new dictionary ooooo
Basilikos
Scratcher
1000+ posts

The 7th Suggestion Directory

Leaving my mark… this is an historic moment.
It's an honour being on the second page of a soon to be sticky.
PGBFLITE6373
Scratcher
1000+ posts

The 7th Suggestion Directory

Jeez, Ive witnessed how amny suggestions directories now? 4?
eikh2
Scratcher
1000+ posts

The 7th Suggestion Directory

Birth of a Directory
IceCreamTub
Scratcher
1000+ posts

The 7th Suggestion Directory

Oh sweet a new potential sticky
Crispydogs101
Scratcher
1000+ posts

The 7th Suggestion Directory

This is actually good. Hope this gets sticked!
medians
Scratcher
1000+ posts

The 7th Suggestion Directory

Crispydogs101 wrote:

This is actually good. Hope this gets sticked!
Well.. congrats on sticky.

Last edited by medians (Jan. 21, 2023 22:59:42)

medians
Scratcher
1000+ posts

The 7th Suggestion Directory

medians wrote:

Edit:
Topic: https://scratch-mit-edu.ezproxyberklee.flo.org/discuss/topic/29255/
Description: A suggestion about adding layers to the pen.
Keywords: pen, block, layer, draw
Duplicates: 458363, 532007, 547749

Last edited by medians (Jan. 22, 2023 03:06:41)

imfh
Scratcher
1000+ posts

The 7th Suggestion Directory

medians wrote:

-snip-
I wrote the script to import the old directory, but I haven’t adjusted it for posts made in this topic yet. I’ll add this once that’s done.
k0d3rrr
Scratcher
1000+ posts

The 7th Suggestion Directory

Whoa, congratulations on owning the new Suggestion Directory!
An0therRand0mC0der
Scratcher
1000+ posts

The 7th Suggestion Directory

imfh wrote:

Adding topics

If you would like a topic to be added, make a post containing something exactly like the below. It must match exactly because I use a script to generate the topic. I plan to make a project which will make this easier.

Links to topics can either be a full url or just the number at the end. The suggestion must have at least 2 pages. You do not need to link duplicates if the topic has at least 4 pages.
Topic: https://scratch-mit-edu.ezproxyberklee.flo.org/discuss/topic/657522/
Description: Short, one line description of topic.
Keywords: keywords, separated, by, commas
Duplicates: 212472, 382706
I feel like this could backfire somehow, like someone puts a joke topic or something.
SavetheAtlantic
Scratcher
1000+ posts

The 7th Suggestion Directory

An0therRand0mC0der wrote:

I feel like this could backfire somehow, like someone puts a joke topic or something.
Do you genuinely think imfh won't just check it out first before adding it
imfh
Scratcher
1000+ posts

The 7th Suggestion Directory

An0therRand0mC0der wrote:

imfh wrote:

-snip-
I feel like this could backfire somehow, like someone puts a joke topic or something.
The script isn’t fully automatic. It reads the forum, updates topics, and regenerates the directory, then I have to edit each post and paste the new content. If someone adds a joke topic or something, I can just remove it when I run the script.

If people abuse the script, then I’ll have to do something about it, but until then, it will make things a whole lot easier.

Last edited by imfh (Jan. 22, 2023 04:01:13)

PGBFLITE6373
Scratcher
1000+ posts

The 7th Suggestion Directory

I have a project that does “Adding topics” as a form basically, just needs a little changing. (it's pretty simple) However, it uses the center tags to simulate enters, because enters don't work in lists. I would like to post it, however, would the center tags mess with the script?
cookieclickerer33
Scratcher
1000+ posts

The 7th Suggestion Directory

New stick!
SaltyTree
Scratcher
100+ posts

The 7th Suggestion Directory

I'm here on page 2!!!
imfh
Scratcher
1000+ posts

The 7th Suggestion Directory

PGBFLITE6373 wrote:

I have a project that does “Adding topics” as a form basically, just needs a little changing. (it's pretty simple) However, it uses the center tags to simulate enters, because enters don't work in lists. I would like to post it, however, would the center tags mess with the script?
I think I finalized how the parsing will work. Try the project with this regex code. It should show the topic id, description, category, etc. in the sidebar.

https://regex101.com/r/EKKTK5/1

If anyone is interested, here the regex used. I recommend pasting this into VSCode with Python syntax formatting since it should provide highlighting for the regex.
SCAN_PATTERN = r"\s*(?:\[center\]\[/center\])?".join((
    r"\[b\](?:(?P<action>\w*?) )?Topic:\[/b\] *.*?(?P<topic>\d+).*?",
    r"(?:\[b\]Reason:\[/b\] (?P<reason>.+))?",
    r"(?:\[b\]Category:\[/b\] (?P<category>.+))?",
    r"(?:\[b\]Description:\[/b\] (?P<description>.+))?",
    r"(?:\[b\]Keywords:\[/b\] (?P<keywords>.+))?",
    r"(?:\[b\]Duplicates:\[/b\] (?P<duplicates>.+))?",
))

Powered by DjangoBB