Editing User talk:SnorlaxMonster

From SmashWiki, the Super Smash Bros. wiki
Jump to navigationJump to search
This is a talk page. Remember to sign your posts with four tildes (~~~~) and follow the talk page policy.
Warning You aren't logged in. While it's not a requirement to create an account, doing so makes it a lot easier to keep track of your edits and a lot harder to confuse you with someone else. If you edit without being logged in, your IP address will be recorded in the page's edit history.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.

Latest revision Your text
Line 38: Line 38:
:::::Yeah, if all you're doing is scraping the tables and concatenating the rows together, that should be fairly straightforward.
:::::Yeah, if all you're doing is scraping the tables and concatenating the rows together, that should be fairly straightforward.
:::::I had also set the code up to store every row in a dict, so I could feed it a list of Spirits (i.e. for a Spirit Board event) and it would output a table of just those Spirit Battles, in the supplied order. It also adds the series as an additional column (as you can see on my [[User:SnorlaxMonster/Spirit Battles|userpage]]), which requires it to parse the "Series Order" table from the bottom of the page too. Those two parts are probably the most complicated parts. --[[User:SnorlaxMonster|<span style="color:#A70000">'''Snorlax'''</span>]][[User talk:SnorlaxMonster|<span style="color:#0000A7">'''Monster'''</span>]] 07:51, August 27, 2020 (EDT)
:::::I had also set the code up to store every row in a dict, so I could feed it a list of Spirits (i.e. for a Spirit Board event) and it would output a table of just those Spirit Battles, in the supplied order. It also adds the series as an additional column (as you can see on my [[User:SnorlaxMonster/Spirit Battles|userpage]]), which requires it to parse the "Series Order" table from the bottom of the page too. Those two parts are probably the most complicated parts. --[[User:SnorlaxMonster|<span style="color:#A70000">'''Snorlax'''</span>]][[User talk:SnorlaxMonster|<span style="color:#0000A7">'''Monster'''</span>]] 07:51, August 27, 2020 (EDT)
::::::I got the code working about a month ago and felt like giving you an update. I went with the row-to-dict like you mentioned though I eventually saved it as a .tsv to be used in a spreadsheet. I parsed the "Series Order" table first and then parsed the "Spirit Battle" table, adding to the dict based on the first cell (number). For Mii DLC battles I checked if a cell contained "rowspan", if so then go ahead and parse the next row (which has the Mii DLC info), increment the loop index, and add the Mii DLC to the dict based on what cells in the primary row ''don't'' have "rowspan". I did the same for the fighter pages; didn't need to parse a "Series Order" table but did run the code three times to do "main", "minion", and "ally" (three function calls, not three page requests). Another reason I used .tsv in the output is so I can keep track of fighters and not worry about mixing up or deleting inspiration sections.
::::::Again, I'd like to say thank you for help and getting me on track. --[[User:CanvasK|CanvasK]] ([[User talk:CanvasK|talk]]) 21:16, February 20, 2021 (EST)

Please note that all contributions to SmashWiki are considered to be released under the Attribution-ShareAlike 3.0 Unported license (see SmashWiki:Copyrights for details). Your changes will be visible immediately. Please enter a summary of your changes above.

Do not submit copyrighted work without permission!

Cancel Editing help (opens in new window)