Topic on User talk:AntisocialRyan

Jump to navigation Jump to search
Trade (talkcontribs)

Do you know how to make catalogs for Mix n Match? I forgot if you have made any before

Wd-Ryan (talkcontribs)
Trade (talkcontribs)

Was it PD you tried with?

Wd-Ryan (talkcontribs)

Nope, it was a list of subreddits, but I think they must've been having problems on their end. Please do try to make a PD one. I haven't been able to scrape that site or get a good list.

Trade (talkcontribs)

A ctalog of every single subreddit in existence? That's more than a million entries

Wd-Ryan (talkcontribs)

Oh no no, not every subreddit, it was like the top 1000 or so.

Trade (talkcontribs)

What list were you trying to scrape from and what problem were you running into specifically? Talking about the top 1000 subreddits

Wd-Ryan (talkcontribs)

I just downloaded a list from somewhere online. I believe mix-n-match wasn't letting me import anything at the time. Pretty much just ignore what I said

This post was hidden by Trade (history)
Trade (talkcontribs)

Could you be more specific where you got it from?

Wd-Ryan (talkcontribs)

I don't know, I just found a plain text list somewhere on Google. It really doesn't matter to me anymore

Trade (talkcontribs)

Oh, okay. What were the catalogs you managed to do?

Wd-Ryan (talkcontribs)

I have my catalogs listed on my user page, under my proposed properties :)

Trade (talkcontribs)

Any idea how to make a catalog for Fandom wikis?

Wd-Ryan (talkcontribs)

You need a text file in this format:

id,name,desc

minecraft,Minecraft Wiki,description of the wiki

terraria,Terraria Wiki,description of the wiki

animals,Animal Wiki,description of the wiki

...

Description is optional but helpful.

Trade (talkcontribs)

Sounds like that would be for the entire Wiki?

Wd-Ryan (talkcontribs)

Oh, for a single wiki, same thing. You just need the IDs and names of each item.

Trade (talkcontribs)

I only wanna catalog a specific category

Wd-Ryan (talkcontribs)

I don't know what that means, but you can do anything you want with that format. Just put the IDs, a comma, and their name. If you don't have good names, just set them to ID as well.

Trade (talkcontribs)

There doesn't seem to be anywhere to upload the text file

Trade (talkcontribs)

Yeah i have zero idea how to use this thing.

Wd-Ryan (talkcontribs)
Trade (talkcontribs)

Under the Data column it just says 'gta,GTA Wiki,GTA Wiki (fandom) radio stations '

Wd-Ryan (talkcontribs)

Ah, you have to include the top row "id,name,desc". These are called headers in CSV.

Trade (talkcontribs)
Wd-Ryan (talkcontribs)

Can you put your file into Pastebin or something and show me? I'll check it out

Trade (talkcontribs)
Wd-Ryan (talkcontribs)

Oh okay, so basically, if you want to make a catalog of those pages, you do something like this:

id,name

gta:Anvil,Anvil

gta:Austin Allegro Chase,Austin Allegro Chase

gta:Deadmau5,Deadmau5

The "id" is the value you want on a Wikidata item. The name is just for matching. You will set the property on the import page, not in the file.

This post was hidden by Trade (history)
Trade (talkcontribs)

What would you say is the easiest way to extract the entries? Copy pasting the ID and names by hand takes some time

Wd-Ryan (talkcontribs)

That is the alt text. Most of the time it is not as easy as copying and pasting. I suppose an extension that removes images from a webpage would fix that.

Trade (talkcontribs)

Do you know if there is an easy way to add gta: in front of all the entrie? Using OpenOffice

Wd-Ryan (talkcontribs)

If you can find & replace every new line, that would help.

Trade (talkcontribs)

What do you mean? I basically had to add it manually to each entry which is a pain

Trade (talkcontribs)

loading data headers.... Welp, i have a feeling this is gonna take a while

Wd-Ryan (talkcontribs)

Like, the new line character, \n... This is advanced text manipulation haha

Trade (talkcontribs)

Yeah im pretty clueless lol

Wd-Ryan (talkcontribs)

If you have specific things you want to do, I can probably just do them myself, I've been working a lot with CSVs and text manipulation like this. Just let me know.

I also got the subreddit catalog working: https://mix-n-match.toolforge.org/#/catalog/5305 (It is a lot of NSFW)

Trade (talkcontribs)

Thanks, that's appreciated. How long time should the loading data headers... take?

Trade (talkcontribs)
Wd-Ryan (talkcontribs)

Did you include the headers at the top? id,name

Mix'n'match does take a long time to import the catalog. If you can access its page, just wait like an hour or so.

Trade (talkcontribs)
Wd-Ryan (talkcontribs)

Yes, that should work, but if you're using tabs instead of commas, you must select "TSV" instead of "CSV". I also don't know how it deals with empty lines, it is probably fine though. If it isn't showing on the front page then something went wrong.

Trade (talkcontribs)

There doesn't seem to be an option to select TSV on the page

Wd-Ryan (talkcontribs)

Sorry I thought it was abbreviated, it says "Tab-separated values"

Trade (talkcontribs)
Wd-Ryan (talkcontribs)

It may look weird but that is actually intended. Everything looks good!

Trade (talkcontribs)

So, there doesn't seem to be a 'create' or 'continue' button anywhere. It says that A catalog with this property already exists so that might be the problem

Trade (talkcontribs)

What is supposed to happen after the data columns shows up? Sorry, i know this takes much of your time

Wd-Ryan (talkcontribs)

There should be a button to test it, and a checkbox that says "Looks good". Once you do both of those there should be a button to import.

Trade (talkcontribs)

The text dissapears sometimes but now i'm running it

Trade (talkcontribs)

The test have been running for more than a hour now

Wd-Ryan (talkcontribs)

That was my problem one time. It should be pretty much instant. Can you show me the current file you're trying to import?

Trade (talkcontribs)
Trade (talkcontribs)

It's the lack of _ in the ID's, isn't it?

Wd-Ryan (talkcontribs)

No, if you are using tabs instead of commas, the header should also be tabs instead of commas.

id[tab]name

Trade (talkcontribs)

Test button doesn't really show up

Trade (talkcontribs)

Have this ever happened to you with the test button not appearing?

Wd-Ryan (talkcontribs)

I'm not sure. Not that I know of

Trade (talkcontribs)
Wd-Ryan (talkcontribs)
Trade (talkcontribs)
Reply to "Mix'n'Match"