NATION

PASSWORD

[Question] Card search functionality

The place to wheel and deal, talk shop, and build up your dream deck!
User avatar
Esternial
Retired Moderator
 
Posts: 54391
Founded: May 09, 2009
Inoffensive Centrist Democracy

[Question] Card search functionality

Postby Esternial » Mon Jan 14, 2019 7:11 am

I was wondering if it's possible to search for cards by their nation name, particularly those of ex-nations.

Anyone know of a way to do so?

User avatar
Teh communist state
Civilian
 
Posts: 1
Founded: Feb 01, 2016
Ex-Nation

Postby Teh communist state » Wed Jan 16, 2019 4:10 am

Sadly, it's not possible. This feature should be added.

User avatar
The Blaatschapen
Technical Moderator
 
Posts: 63226
Founded: Antiquity
Anarchy

Postby The Blaatschapen » Wed Jan 16, 2019 9:03 am

Esternial wrote:I was wondering if it's possible to search for cards by their nation name, particularly those of ex-nations.

Anyone know of a way to do so?


Abuse the API.

https://www.nationstates.net/cgi-bin/ap ... pen&q=dbid gives back my database identifier. Then fill in the number on https://www.nationstates.net/page=deck/card=<number>/season=1

In my case you'd get https://www.nationstates.net/page=deck/card=84/season=1

This, unfortunately does not work with ex-nations. https://www.nationstates.net/cgi-bin/ap ... iii&q=dbid gives back a 404 page :(
The Blaatschapen should resign

User avatar
Esternial
Retired Moderator
 
Posts: 54391
Founded: May 09, 2009
Inoffensive Centrist Democracy

Postby Esternial » Wed Jan 16, 2019 2:29 pm

The blAAtschApen wrote:
Esternial wrote:I was wondering if it's possible to search for cards by their nation name, particularly those of ex-nations.

Anyone know of a way to do so?


Abuse the API.

https://www.nationstates.net/cgi-bin/ap ... pen&q=dbid gives back my database identifier. Then fill in the number on https://www.nationstates.net/page=deck/card=<number>/season=1

In my case you'd get https://www.nationstates.net/page=deck/card=84/season=1

This, unfortunately does not work with ex-nations. https://www.nationstates.net/cgi-bin/ap ... iii&q=dbid gives back a 404 page :(

Aw poop.

That's a bit of roundabout way of finding your card, but nice to know. Haven't bothered exploring the API all too much :)

User avatar
The Blaatschapen
Technical Moderator
 
Posts: 63226
Founded: Antiquity
Anarchy

Postby The Blaatschapen » Wed Jan 16, 2019 2:37 pm

Esternial wrote:
The blAAtschApen wrote:
Abuse the API.

https://www.nationstates.net/cgi-bin/ap ... pen&q=dbid gives back my database identifier. Then fill in the number on https://www.nationstates.net/page=deck/card=<number>/season=1

In my case you'd get https://www.nationstates.net/page=deck/card=84/season=1

This, unfortunately does not work with ex-nations. https://www.nationstates.net/cgi-bin/ap ... iii&q=dbid gives back a 404 page :(

Aw poop.

That's a bit of roundabout way of finding your card, but nice to know. Haven't bothered exploring the API all too much :)


I also did not see the dbid in the daily dump.

If it was, you could check the boneyard for when the nation died, then get a historical daily dump of the day before, then get the dbid, then fill it in as the card number :unsure:

Alas, there is no such way. But there might be people around who have scanned all of NS at times for dbids and saved them :lol:

That said, the API is a nice thing :)
The Blaatschapen should resign

User avatar
Esternial
Retired Moderator
 
Posts: 54391
Founded: May 09, 2009
Inoffensive Centrist Democracy

Postby Esternial » Wed Jan 16, 2019 3:13 pm

The blAAtschApen wrote:
Esternial wrote:Aw poop.

That's a bit of roundabout way of finding your card, but nice to know. Haven't bothered exploring the API all too much :)


I also did not see the dbid in the daily dump.

If it was, you could check the boneyard for when the nation died, then get a historical daily dump of the day before, then get the dbid, then fill it in as the card number :unsure:

Alas, there is no such way. But there might be people around who have scanned all of NS at times for dbids and saved them :lol:

That said, the API is a nice thing :)

Maybe if I ask Violet nicely she'll give me sysdba access :)

User avatar
SYSDBA
Civilian
 
Posts: 1
Founded: Jan 05, 2019
Ex-Nation

Postby SYSDBA » Wed Jan 16, 2019 3:14 pm

I have the account anyway :p

User avatar
The Blaatschapen
Technical Moderator
 
Posts: 63226
Founded: Antiquity
Anarchy

Postby The Blaatschapen » Wed Jan 16, 2019 3:21 pm

Esternial wrote:
The blAAtschApen wrote:
I also did not see the dbid in the daily dump.

If it was, you could check the boneyard for when the nation died, then get a historical daily dump of the day before, then get the dbid, then fill it in as the card number :unsure:

Alas, there is no such way. But there might be people around who have scanned all of NS at times for dbids and saved them :lol:

That said, the API is a nice thing :)

Maybe if I ask Violet nicely she'll give me sysdba access :)


You want to become an NS admin? :lol:
The Blaatschapen should resign

User avatar
Esternial
Retired Moderator
 
Posts: 54391
Founded: May 09, 2009
Inoffensive Centrist Democracy

Postby Esternial » Wed Jan 16, 2019 3:29 pm

The blAAtschApen wrote:
Esternial wrote:Maybe if I ask Violet nicely she'll give me sysdba access :)


You want to become an NS admin? :lol:

Hah, imagine that.

I'm an Oracle boi, running on exadata. I doubt I'd have the patience >.>

But if I get to play around I never say no ;)
Last edited by Esternial on Wed Jan 16, 2019 3:29 pm, edited 1 time in total.

User avatar
Erratica
Secretary
 
Posts: 36
Founded: Jan 22, 2018
Ex-Nation

Postby Erratica » Wed Jan 16, 2019 4:02 pm

You can find a current nations card by going to their nation page (from world search if you want) then click on their card icon to view their deck and a link to that nations card should be in the top right.

Personally I would like cards to be alphabetical when adding them to collections

User avatar
Insaynitia
Lobbyist
 
Posts: 17
Founded: Apr 01, 2014
Ex-Nation

Postby Insaynitia » Sun Feb 17, 2019 7:52 pm

I have a lot of good friends who have long CTE'd, and I want search functionality (by typing a name of a nation in the market or something) so I can specifically find their cards. I'd imagine it wouldn't be that hard to implement since I know ex-nation cards are out there, and there are market pages for said cards. Just make a search function that pulls up a list of cards and allows you to click on them to check their market info.

User avatar
Esternial
Retired Moderator
 
Posts: 54391
Founded: May 09, 2009
Inoffensive Centrist Democracy

Postby Esternial » Mon Feb 18, 2019 3:15 am

Insaynitia wrote:I have a lot of good friends who have long CTE'd, and I want search functionality (by typing a name of a nation in the market or something) so I can specifically find their cards. I'd imagine it wouldn't be that hard to implement since I know ex-nation cards are out there, and there are market pages for said cards. Just make a search function that pulls up a list of cards and allows you to click on them to check their market info.

Indeed, I have the same problem.

If the card IDs are mapped to the nation name somewhere it should be possible to implement.

User avatar
Blargoblarg
Minister
 
Posts: 2282
Founded: Sep 06, 2010
Corrupt Dictatorship

Postby Blargoblarg » Mon Feb 18, 2019 3:58 am

I'd love it if there was an option to search for cards by name as well. I've been looking for cards with pony flags and I'm betting there's some cards of recently CTE'd pony nations that I can't find by searching for their nations since that only brings up the nations that still exist.
Last edited by Blargoblarg on Mon Feb 18, 2019 4:00 am, edited 1 time in total.
Claudia De la Cruz 2024 Article about her here
Democrats and Republicans are both right-wing capitalists owned by the rich and the big corporations. Major media in the US is also owned by the rich and big corporations.
Major study finds that America is an oligarchy, not a democracy
"Workers of the world, unite!" -Marx and Engels
You can read The State and Revolution by Lenin for free here
My 8values results My leftvalues results
I am autistic.

User avatar
Philomathia
Secretary
 
Posts: 33
Founded: Feb 15, 2017
Ex-Nation

Postby Philomathia » Mon Feb 18, 2019 1:39 pm

Esternial wrote:I was wondering if it's possible to search for cards by their nation name, particularly those of ex-nations.

Anyone know of a way to do so?

When I want to go to a nation who's name I know I go to my homepage and change =philomathia to =nation name
But it only works if you know the exact name of the nation.
So not much a 'search'

User avatar
ChUbBiesTnEss
Bureaucrat
 
Posts: 52
Founded: Jun 24, 2018
Ex-Nation

Postby ChUbBiesTnEss » Sun Apr 14, 2019 1:07 pm

Philomathia wrote:
Esternial wrote:I was wondering if it's possible to search for cards by their nation name, particularly those of ex-nations.

Anyone know of a way to do so?

When I want to go to a nation who's name I know I go to my homepage and change =philomathia to =nation name
But it only works if you know the exact name of the nation.
So not much a 'search'

You can do it with existing nations but sadly not with ex-nations.

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

Postby 9003 » Sun Apr 14, 2019 1:53 pm

As mentioned in a different thread in working on a full searchable list and will post it when it's ready hopefully later this week
proud member of PETZ people for the Ethical Treatment of Zombies

Active member of The cards market place discord

User avatar
Fedel
Minister
 
Posts: 2059
Founded: Mar 08, 2018
Ex-Nation

Postby Fedel » Thu Feb 06, 2020 7:00 pm

9003 wrote:As mentioned in a different thread in working on a full searchable list and will post it when it's ready hopefully later this week


How's that coming? :>

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

Postby 9003 » Thu Feb 06, 2020 8:21 pm

Fedel wrote:
9003 wrote:As mentioned in a different thread in working on a full searchable list and will post it when it's ready hopefully later this week


How's that coming? :>



try not to gravedig when the answer is on the front page ..... buuuuuut
https://forum.nationstates.net/viewtopic.php?f=42&t=470015 is the most functional search we have! The XML list is a few links below it.
Last edited by 9003 on Thu Feb 06, 2020 8:21 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
Pangurstan
Diplomat
 
Posts: 618
Founded: Aug 20, 2017
Liberal Democratic Socialists

Postby Pangurstan » Thu Feb 06, 2020 9:44 pm

If you look up an ex nation in the boneyard, you can see its ID number. Then just go to https://www.nationstates.net/page=deck/card=the nations ID.
among us


April is the cruelest month, breeding
Lilacs out of a dead land, mixing
Memory and desire, stirring
Dull roots with spring rain.

User avatar
Destructive Government Economic System
Minister
 
Posts: 3470
Founded: Jun 15, 2017
Corporate Police State

Postby Destructive Government Economic System » Sat Feb 08, 2020 7:42 am

Pangurstan wrote:If you look up an ex nation in the boneyard, you can see its ID number. Then just go to https://www.nationstates.net/page=deck/card=the nations ID.
9003 wrote:
Fedel wrote:
How's that coming? :>



try not to gravedig when the answer is on the front page ..... buuuuuut
https://forum.nationstates.net/viewtopic.php?f=42&t=470015 is the most functional search we have! The XML list is a few links below it.


Both of these would work.

The method Pangurstan linked is on-site, while the one 9003 linked is an off-site tool made by a trusted code junkie.
Last edited by Destructive Government Economic System on Sat Feb 08, 2020 7:43 am, edited 1 time in total.
"All I wish is to see the world burn."
-The Great Uniter and Beast of the DGES
(By the way, the DGES is a servant to DEAREST LEADER of Psychotic Dictatorships.)
Just your typical guy who wants to have fun. Don't take this nation seriously,
ever.
I DO NOT use NS stats!
Keshiland literally wrote:I would give it a no. A country that lies about how free, or how great, or how humanitarian it is can never be developed. Example, NK lies and says they are democratic and are not, the US lies and says we are free yet we incarcerate millions for a medical plant. See we are basically a larger more populated North Korea.


Advertisement

Remove ads

Return to Trading Cards

Who is online

Users browsing this forum: No registered users

Advertisement

Remove ads