Jump to content

Parapet

Members
  • Posts

    19
  • Joined

  • Last visited

  • Days Won

    1

Parapet last won the day on February 16 2023

Parapet had the most liked content!

Profile Information

  • Gender
    Male
  • Leader Name
    Parapet
  • Nation Name
    Belka
  • Nation ID
    476756
  • Alliance Name
    Fremen

Contact Methods

  • Discord Name: parapet6573

Recent Profile Visitors

3268 profile views

Parapet's Achievements

Casual Member

Casual Member (2/8)

92

Reputation

  1. Congratulations to you all, I wish you a prosperous and long future ahead of you. 😄
  2. Very excited to see where this goes fellas.
  3. For legal reasons this is a joke and everything I say is alleged
  4. For legal reasons this is a joke.
  5. I am going through all the stages of grief simultaneously. I had something to look forward to and now its gone. See yall in May I guess.
  6. I do not speak for anyone or anything but myself. But the general consensus I had while playing this game was that a war dodger is someone that leaves the alliance during an active war. Now in Carthago’s defense, that definition can be heavily stretched to include people both leaving the alliance and people who become inactive. However to me, people who go inactive are not really war dodgers. War dodgers usually have self interested reasons to leave an alliance. For example, if I left my alliance to save my infrastructure, that would be textbook war dodging. But going inactive and not playing is a different situation to me. But I also have a few questions for you. Can I have a source or at least some credibility to this claim? Like a statement from CTO or a given definition from their training guides? It is not exactly clear to me what triggered this response from you in the first place. Also on an unrelated note: How did your spies get caught in a gather intelligence spy op? That’s some serious bad luck.
  7. Quite a dangerous argument that can be applied and used against us all don't ya think?
  8. Screw a follow up post lets do it now. After less than a half an hours work I present yet another breakthrough. I now bring the ability for all to be able to collect publicly information of alliances on mass. Thanks to ChatGPT and my testing, I now present a functional example by which ChatGPT can create a script that uses PNW API to create a detailed sheet of every nation in a particular alliance. Have fun. Simply put in the alliance ID you want then put in your API key. Easy as pie. import requests import pandas as pd # Enter your alliance ID and API key below alliance_id = "8900" api_key = "API_KEY_HERE" # Define a function to return a value or "N/A" if the value is missing def get_value_or_na(data, key): value = data.get(key) if value is None: return "N/A" else: return value # Fetch the list of nations in the alliance url = f"https://politicsandwar.com/api/nations/?alliance_id={alliance_id}&key={api_key}" response = requests.get(url) if response.status_code == 200: nations = response.json() if isinstance(nations, str): print("Error fetching nations:", nations) exit() nation_ids = [nation["nationid"] for nation in nations["nations"]] else: print("Error fetching nations:", response.text) exit() # Fetch the nation data for each nation nation_data = [] for nation_id in nation_ids: url = f"https://politicsandwar.com/api/nation/id={nation_id}&key={api_key}" response = requests.get(url) if response.status_code == 200: nation = response.json() nation_info = { "name": get_value_or_na(nation, "name"), "nationid": get_value_or_na(nation, "nationid"), "cities": get_value_or_na(nation, "cities"), "score": get_value_or_na(nation, "score"), "war_policy": get_value_or_na(nation, "war_policy"), "projects": get_value_or_na(nation, "projects"), "soldiers": get_value_or_na(nation, "soldiers"), "tanks": get_value_or_na(nation, "tanks"), "aircraft": get_value_or_na(nation, "aircraft"), "ships": get_value_or_na(nation, "ships"), "missiles": get_value_or_na(nation, "missiles"), "nukes": get_value_or_na(nation, "nukes"), "missilelpad": get_value_or_na(nation, "missilelpad"), "nuclearresfac": get_value_or_na(nation, "nuclearresfac"), "iron_dome": get_value_or_na(nation, "iron_dome"), "vitaldefsys": get_value_or_na(nation, "vitaldefsys"), "prop_bureau": get_value_or_na(nation, "prop_bureau"), "spy_satellite": get_value_or_na(nation, "spy_satellite"), "pirate_economy": get_value_or_na(nation, "pirate_economy") } nation_data.append(nation_info) else: print("Error fetching nation data:", response.text) # Create a Pandas DataFrame with the nation data df = pd.DataFrame(nation_data, columns=["name", "nationid", "cities", "score", "war_policy", "projects", "soldiers", "tanks", "aircraft", "ships", "missiles", "nukes", "missilelpad", "nuclearresfac", "iron_dome", "vitaldefsys", "prop_bureau", "spy_satellite", "pirate_economy"]) # Write the DataFrame to a spreadsheet filename = f"{alliance_id}_nation_data.xlsx" df.to_excel(filename, index=False) print(f"Nation data written to {filename}") The above prompt made the code below and created the output below. This is yet another example of how ChatGPT can help micros close the gap in terms of technology when compared to the larger macros they have to compete with. I post this here to show you while there are some funky things with this, wither either changes to the prompt or a half decent coder, one can make this into a very functional sheet.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use and the Guidelines of the game and community.