NATION

PASSWORD

Bowzin's WFE Archive - 3/18/20

Bug reports, general help, ideas for improvements, and questions about how things are meant to work.
User avatar
Bowzin
Envoy
 
Posts: 301
Founded: Aug 13, 2018
Libertarian Police State

Bowzin's WFE Archive - 3/18/20

Postby Bowzin » Thu Mar 19, 2020 1:56 pm

-=[ WFE Archive ]=-
Link

With the absence of a working, updating, World Factbook Entry archive for defenders to use, detagging has become less effective, and although I am a raider (I guess), I figured I would help them out. Additionally, you can use this archive for whatever purposes you want.

The website is simple to use, you head over to the website, enter in the region you want to view, hit 'Enter', and bask in the glory of WFE records.

Want to link a region's records to a friend? Easy, just copy-paste the link you get from searching the region. Want to send them a specific record? Click on the date for that record, and send them that link, instead.

-=[ Details ]=-
At the moment, I think I will be updating the records every week, although I am open to input on this. Along with this, I don't think I will need to ever purge older records, but if I ever do, it'd be records that are like a year old hopefully. The database should have plenty of space to expand.

I don't have any rate-limiting built in, but try not to spam searches, as it'll slow down the database. I was considering adding flags, but as far as I know, the flag links provided from the data dump aren't permanent, as I believe they delete files when they are no longer a regions flag after a while. Correct me if I am wrong.

If there are any other features you might want added, let me know here, in telegrams, or on Discord: bowzin#6742
If there are ever any errors with the database/website, let me know as soon as possible!

Hope you guys get some good use out of this!
Bowzin Vytherov-Skollvaldr
| On a Redemption Arc. |
We dropped a new resume dispatch!

User avatar
9003
Diplomat
 
Posts: 624
Founded: Oct 25, 2012
Corporate Police State

Postby 9003 » Thu Mar 19, 2020 2:07 pm

Thanks! I had been working on a similar project (with out the web interface)

But I figure I can still share as mine will run locally in the event that this tool and my stash stop being updated

here turns out there's a lot of files to upload so I've been working them up as I can to run the tool grab it from the gimme that code file. You will need python to run it.

Thanks for the handy website tho

Edit: as a note mine does go as far back as the dump files are. For a complete index check the zip folder
Last edited by 9003 on Thu Mar 19, 2020 2:09 pm, edited 1 time in total.
proud member of PETZ people for the Ethical Treatment of Zombies

Active member of The cards market place discord

User avatar
Minoa
Negotiator
 
Posts: 6074
Founded: Oct 05, 2011
Civil Rights Lovefest

Postby Minoa » Sat Mar 21, 2020 6:41 am

Source: https://www.bowzin.com/wfe_archive?region=Minoa

I think that any duplicate records can be merged: Minoa doesn't update their WFE as much as an active region, such as the Feeder/Sinker or Raider/Defender headquarters regions.
Mme A. d'Oiseau, B.A. (State of Minoa)

User avatar
Tinhampton
Postmaster-General
 
Posts: 13700
Founded: Oct 05, 2016
Civil Rights Lovefest

Postby Tinhampton » Sat Mar 21, 2020 4:59 pm

In the link to Minoa's WFE provided above, "hoşgeldiniz" (the Turkish word for "welcome") displays as "hoşgeldiniz." Why does Bowzin's WFE Archive not (currently) support accented and non-Latin-script characters?
The Self-Administrative City of TINHAMPTON (pop. 329,537): Saffron Howard, Mayor (UCP); Alexander Smith, WA Delegate-Ambassador

Authorships & co-authorships: SC#250, SC#251, Issue #1115, SC#267, GA#484, GA#491, GA#533, GA#540, GA#549, SC#356, GA#559, GA#562, GA#567, GA#578, SC#374, GA#582, SC#375, GA#589, GA#590, SC#382, SC#385*, GA#597, GA#607, SC#415, GA#647, GA#656, GA#664, GA#671, GA#674, GA#675, GA#677, GA#680, Issue #1580, GA#682, GA#683, GA#684, GA#692, GA#693, GA#715
The rest of my CV: Cup of Harmony 73 champions; Philosopher-Queen of Sophia; *author of the most popular SC Res. ever; anti-NPO cabalist in good standing; 48yo Tory woman w/Asperger's; Cambridge graduate ~ currently reading The World by Simon Sebag Montefiore

User avatar
9003
Diplomat
 
Posts: 624
Founded: Oct 25, 2012
Corporate Police State

Postby 9003 » Sat Mar 21, 2020 6:49 pm

Tinhampton wrote:In the link to Minoa's WFE provided above, "hoşgeldiniz" (the Turkish word for "welcome") displays as "hoşgeldiniz." Why does Bowzin's WFE Archive not (currently) support accented and non-Latin-script characters?



Not the coder of the doc but taking a stab at it being becuse it's written in Python so some things are encoded that way when read from the dump files. Any non standard charecter so ' ; also can sometimes have werid results like that always the same and you can Google what they are supposed to be If needed.
proud member of PETZ people for the Ethical Treatment of Zombies

Active member of The cards market place discord

User avatar
Bowzin
Envoy
 
Posts: 301
Founded: Aug 13, 2018
Libertarian Police State

Postby Bowzin » Sun Mar 22, 2020 2:39 am

9003 wrote:
Tinhampton wrote:In the link to Minoa's WFE provided above, "hoşgeldiniz" (the Turkish word for "welcome") displays as "hoşgeldiniz." Why does Bowzin's WFE Archive not (currently) support accented and non-Latin-script characters?



Not the coder of the doc but taking a stab at it being becuse it's written in Python so some things are encoded that way when read from the dump files. Any non standard charecter so ' ; also can sometimes have werid results like that always the same and you can Google what they are supposed to be If needed.

This is indeed correct, my dump-reader is in python. Also, some characters are set to be altered to prevent any injection hacking.
Bowzin Vytherov-Skollvaldr
| On a Redemption Arc. |
We dropped a new resume dispatch!

User avatar
9003
Diplomat
 
Posts: 624
Founded: Oct 25, 2012
Corporate Police State

Postby 9003 » Sun Mar 22, 2020 7:05 am

Do you ever intend to go back further then what you have now for regions that have been taged when you started this the regional dumps go back to 2018ish

Edit if needed I have the zip I linked above to save time rather then going back and reading all the old dumps.


Likewise do you think you'll be able to get the flag index back ever or not? Understanding that takes significantly more over head
Last edited by 9003 on Sun Mar 22, 2020 7:06 am, edited 1 time in total.
proud member of PETZ people for the Ethical Treatment of Zombies

Active member of The cards market place discord

User avatar
Bowzin
Envoy
 
Posts: 301
Founded: Aug 13, 2018
Libertarian Police State

Postby Bowzin » Sun Mar 22, 2020 3:19 pm

9003 wrote:Do you ever intend to go back further then what you have now for regions that have been taged when you started this the regional dumps go back to 2018ish

Edit if needed I have the zip I linked above to save time rather then going back and reading all the old dumps.


Likewise do you think you'll be able to get the flag index back ever or not? Understanding that takes significantly more over head

I'm open to doing that, would just take me some time to add a bunch of dumps-worth of data to the db
As for flags, I don't have much space on the server, and I don't want to be filling it up with flag files atm. Maybe in the future I will consider it when I can upgrade the server.
Bowzin Vytherov-Skollvaldr
| On a Redemption Arc. |
We dropped a new resume dispatch!

User avatar
Merni
Ambassador
 
Posts: 1800
Founded: May 03, 2016
Democratic Socialists

Postby Merni » Mon Mar 23, 2020 2:51 am

Bowzin wrote:
9003 wrote:Not the coder of the doc but taking a stab at it being becuse it's written in Python so some things are encoded that way when read from the dump files. Any non standard charecter so ' ; also can sometimes have werid results like that always the same and you can Google what they are supposed to be If needed.

This is indeed correct, my dump-reader is in python. Also, some characters are set to be altered to prevent any injection hacking.

You can convert references to the actual unicode characters thus: (st is the string to convert)
import html
st = html.escape(html.unescape(st),quote=True)

This converts all &# escaped characters to actual unicode while keeping & < > ' " escaped. Docs. If you want to keep quotes unescaped set that parameter to false. If you want &<> to be unescaped as well then just use unescape.
Last edited by Merni on Mon Mar 23, 2020 2:54 am, edited 1 time in total.
2024: the year of democracy. Vote!
The Labyrinth | Donate your free time, help make free ebooks | Admins: Please let us block WACC TGs!
RIP Residency 3.5.16-18.11.21, killed by simplistic calculation
Political Compass: Economic -9.5 (Left) / Social -3.85 (Liberal)
Wrote issue 1523, GA resolutions 532 and 659
meth
When the people are being beaten with a stick, they are not much happier if it is called 'the People’s Stick.' — Mikhail Bakunin (to Karl Marx)
You're supposed to be employing the arts of diplomacy, not the ruddy great thumping sledgehammers of diplomacy. — Ardchoille
The West won the world not by the superiority of its ideas or values or religion [...] but rather by its superiority in applying organised violence. — Samuel P. Huntington (even he said that!)

User avatar
9003
Diplomat
 
Posts: 624
Founded: Oct 25, 2012
Corporate Police State

Postby 9003 » Mon Mar 23, 2020 7:42 am

Thank you so much I will add that to my code right away. It'll be more helpful then trying to guess or Google what each one is.
proud member of PETZ people for the Ethical Treatment of Zombies

Active member of The cards market place discord

User avatar
Tinhampton
Postmaster-General
 
Posts: 13700
Founded: Oct 05, 2016
Civil Rights Lovefest

Postby Tinhampton » Thu Jun 11, 2020 5:25 am

I note that your WFE Archive has not saved any WFEs since May 13th 2020. Why is this?
The Self-Administrative City of TINHAMPTON (pop. 329,537): Saffron Howard, Mayor (UCP); Alexander Smith, WA Delegate-Ambassador

Authorships & co-authorships: SC#250, SC#251, Issue #1115, SC#267, GA#484, GA#491, GA#533, GA#540, GA#549, SC#356, GA#559, GA#562, GA#567, GA#578, SC#374, GA#582, SC#375, GA#589, GA#590, SC#382, SC#385*, GA#597, GA#607, SC#415, GA#647, GA#656, GA#664, GA#671, GA#674, GA#675, GA#677, GA#680, Issue #1580, GA#682, GA#683, GA#684, GA#692, GA#693, GA#715
The rest of my CV: Cup of Harmony 73 champions; Philosopher-Queen of Sophia; *author of the most popular SC Res. ever; anti-NPO cabalist in good standing; 48yo Tory woman w/Asperger's; Cambridge graduate ~ currently reading The World by Simon Sebag Montefiore

User avatar
Aurum Raider
Envoy
 
Posts: 239
Founded: Sep 18, 2014
Iron Fist Consumerists

Postby Aurum Raider » Thu Jun 11, 2020 3:24 pm

Bowzin wrote:As for flags, I don't have much space on the server, and I don't want to be filling it up with flag files atm. Maybe in the future I will consider it when I can upgrade the server.

If you base64 encode the flag images you can store them in the Database as text much like WFEs - however I would only do this after setting up triggers to prevent duplicate entries.
Vleerian Vytherov-Denral
Cognitohazard

The North Polish Union wrote:Additionally, virtually all founderless regions are viewed as falling under the defenders' allegedly protective purview. This is a form of colonialism that the great imperialist regions of NS history could only dream of.


Advertisement

Remove ads

Return to Technical

Who is online

Users browsing this forum: Azmeny, Bayfront International Territory, Betashock, Countriopia, Dartropica, Eris Town, Francae, Grishahakkaverchynot, Improper Classifications, Khantin, Lowell Leber, Omnicontrol, Patolia, The Holy Caltro

Advertisement

Remove ads