Created
February 26, 2018 04:55
-
-
Save Omochin/b8dff8b60dff63e753240ca8dd3b03e7 to your computer and use it in GitHub Desktop.
Python 3.x. pip install beautifulsoup4. Generate CSV and JSON of EVE Online notification types.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import csv | |
import json | |
import urllib.request | |
from collections import OrderedDict | |
import bs4 | |
def main(): | |
url = 'https://eveonline-third-party-documentation.readthedocs.io/en/latest/xmlapi/character/char_notifications.html' | |
soup = bs4.BeautifulSoup(urllib.request.urlopen(url).read(), 'html.parser') | |
notification_dict = OrderedDict() | |
for tr in soup.select('#notification-types > table > tbody > tr'): | |
tds = tr.find_all('td') | |
notification_dict[tds[0].string.strip()] = tds[1].string.strip() | |
with open('notification_types.json', 'w') as file: | |
json.dump(notification_dict, file) | |
with open('notification_types.csv', 'w') as file: | |
writer = csv.writer(file, lineterminator='\n') | |
for notification_id, notification_text in notification_dict.items(): | |
writer.writerow([notification_id, notification_text]) | |
if __name__ == '__main__': | |
main() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 | Legacy | |
---|---|---|
2 | Character deleted | |
3 | Give medal to character | |
4 | Alliance maintenance bill | |
5 | Alliance war declared | |
6 | Alliance war surrender | |
7 | Alliance war retracted | |
8 | Alliance war invalidated by Concord | |
9 | Bill issued to a character | |
10 | Bill issued to corporation or alliance | |
11 | Bill not paid because there's not enough ISK available | |
12 | Bill, issued by a character, paid | |
13 | Bill, issued by a corporation or alliance, paid | |
14 | Bounty claimed | |
15 | Clone activated | |
16 | New corp member application | |
17 | Corp application rejected | |
18 | Corp application accepted | |
19 | Corp tax rate changed | |
20 | Corp news report, typically for shareholders | |
21 | Player leaves corp | |
22 | Corp news, new CEO | |
23 | Corp dividend/liquidation, sent to shareholders | |
24 | Corp dividend payout, sent to shareholders | |
25 | Corp vote created | |
26 | Corp CEO votes revoked during voting | |
27 | Corp declares war | |
28 | Corp war has started | |
29 | Corp surrenders war | |
30 | Corp retracts war | |
31 | Corp war invalidated by Concord | |
32 | Container password retrieval | |
33 | Contraband or low standings cause an attack or items being confiscated | |
34 | First ship insurance | |
35 | Ship destroyed, insurance payed | |
36 | Insurance contract invalidated/runs out | |
37 | Sovereignty claim fails (alliance) | |
38 | Sovereignty claim fails (corporation) | |
39 | Sovereignty bill late (alliance) | |
40 | Sovereignty bill late (corporation) | |
41 | Sovereignty claim lost (alliance) | |
42 | Sovereignty claim lost (corporation) | |
43 | Sovereignty claim acquired (alliance) | |
44 | Sovereignty claim acquired (corporation) | |
45 | Alliance anchoring alert | |
46 | Alliance structure turns vulnerable | |
47 | Alliance structure turns invulnerable | |
48 | Sovereignty disruptor anchored | |
49 | Structure won/lost | |
50 | Corp office lease expiration notice | |
51 | Clone contract revoked by station manager | |
52 | Corp member clones moved between stations | |
53 | Clone contract revoked by station manager | |
54 | Insurance contract expired | |
55 | Insurance contract issued | |
56 | Jump clone destroyed | |
57 | Jump clone destroyed | |
58 | Corporation joining factional warfare | |
59 | Corporation leaving factional warfare | |
60 | Corporation kicked from factional warfare on startup because of too low standing to the faction | |
61 | Character kicked from factional warfare on startup because of too low standing to the faction | |
62 | Corporation in factional warfare warned on startup because of too low standing to the faction | |
63 | Character in factional warfare warned on startup because of too low standing to the faction | |
64 | Character loses factional warfare rank | |
65 | Character gains factional warfare rank | |
66 | Agent has moved | |
67 | Mass transaction reversal message | |
68 | Reimbursement message | |
69 | Agent locates a character | |
70 | Research mission becomes available from an agent | |
71 | Agent mission offer expires | |
72 | Agent mission times out | |
73 | Agent offers a storyline mission | |
74 | Tutorial message sent on character creation | |
75 | Tower alert | |
76 | Tower resource alert | |
77 | Station aggression message | |
78 | Station state change message | |
79 | Station conquered message | |
80 | Station aggression message | |
81 | Corporation requests joining factional warfare | |
82 | Corporation requests leaving factional warfare | |
83 | Corporation withdrawing a request to join factional warfare | |
84 | Corporation withdrawing a request to leave factional warfare | |
85 | Corporation liquidation | |
86 | Territorial Claim Unit under attack | |
87 | Sovereignty Blockade Unit under attack | |
88 | Infrastructure Hub under attack | |
89 | Contact add notification | |
90 | Contact edit notification | |
91 | Incursion Completed | |
92 | Corp Kicked | |
93 | Customs office has been attacked | |
94 | Customs office has entered reinforced | |
95 | Customs office has been transferred | |
96 | FW Alliance Warning | |
97 | FW Alliance Kick | |
98 | AllWarCorpJoined Msg | |
99 | Ally Joined Defender | |
100 | Ally Has Joined a War Aggressor | |
101 | Ally Joined War Ally | |
102 | New war system: entity is offering assistance in a war. | |
103 | War Surrender Offer | |
104 | War Surrender Declined | |
105 | FacWar LP Payout Kill | |
106 | FacWar LP Payout Event | |
107 | FacWar LP Disqualified Eventd | |
108 | FacWar LP Disqualified Kill | |
109 | Alliance Contract Cancelled | |
110 | War Ally Declined Offer | |
111 | Your Bounty Was Claimed | |
112 | Bounty placed (Char) | |
113 | Bounty Placed (Corp) | |
114 | Bounty Placed (Alliance) | |
115 | Kill Right Available | |
116 | Kill right Available Open | |
117 | Kill Right Earned | |
118 | Kill right Used | |
119 | Kill Right Unavailable | |
120 | Kill Right Unavailable Open | |
121 | Declare War | |
122 | Offered Surrender | |
123 | Accepted Surrender | |
124 | Made War Mutual | |
125 | Retracts War | |
126 | Offered To Ally | |
127 | Accepted Ally | |
128 | Character Application Accept | |
129 | Character Application Reject | |
130 | Character Application Withdraw | |
138 | Clone activated | |
140 | Loss report available | |
141 | Kill report available | |
147 | Entosis Link started | |
148 | Entosis Link enabled a module | |
149 | Entosis Link disabled a module | |
131 | DustAppAcceptedMsg ? | |
132 | DistrictAttacked ? | |
133 | BattlePunishFriendlyFire ? | |
134 | BountyESSTaken ? | |
135 | BountyESSShared ? | |
136 | IndustryTeamAuctionWon ? | |
137 | IndustryTeamAuctionLost ? | |
139 | Corporation invitation accepted (CorpAppInvitedMsg) | |
142 | Corporation application rejected (CorpAppRejectCustomMsg) | |
143 | Friendly fire enable timer started (CorpFriendlyFireEnableTimerStarted) | |
144 | Friendly fire disable timer started (CorpFriendlyFireDisableTimerStarted) | |
145 | Friendly fire enable timer completed (CorpFriendlyFireEnableTimerCompleted) | |
146 | Friendly fire disable timer completed (CorpFriendlyFireDisableTimerCompleted) | |
152 | Infrastructure hub bill about to expire (InfrastructureHubBillAboutToExpire) | |
160 | Sovereignty structure reinforced (SovStructureReinforced) | |
161 | SovCommandNodeEventStarted ? | |
162 | Sovereignty structure destroyed (SovStructureDestroyed) | |
163 | SovStationEnteredFreeport ? | |
164 | IHubDestroyedByBillFailure ? | |
166 | BuddyConnectContactAdd ? | |
165 | Alliance capital changed (AllianceCapitalChanged) | |
167 | Sovereignty structure self destruction requested (SovStructureSelfDestructRequested) | |
168 | Sovereignty structure self destruction canceled (SovStructureSelfDestructCancel) | |
169 | Sovereignty structure self destruction completed (SovStructureSelfDestructFinished) | |
181 | Structure fuel alert (StructureFuelAlert) | |
182 | Structure anchoring started (StructureAnchoring) | |
183 | Structure unanchoring started (StructureUnanchoring) | |
184 | Structure under attack (StructureUnderAttack) | |
185 | Structure Online (StructureOnline) | |
186 | Structure lost shields (StructureLostShields) | |
187 | Structure lost Armor (StructureLostArmor) | |
188 | Structure destroyed (StructureDestroyed) | |
198 | Structure service offline (StructureServicesOffline) | |
199 | Item delivered (StructureItemsDelivered) | |
201 | StructureCourierContractChanged ? | |
1012 | OperationFinished ? | |
1030 | Game time received (GameTimeReceived) | |
1031 | Game time sent (GameTimeSent) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{"1": "Legacy", "2": "Character deleted", "3": "Give medal to character", "4": "Alliance maintenance bill", "5": "Alliance war declared", "6": "Alliance war surrender", "7": "Alliance war retracted", "8": "Alliance war invalidated by Concord", "9": "Bill issued to a character", "10": "Bill issued to corporation or alliance", "11": "Bill not paid because there's not enough ISK available", "12": "Bill, issued by a character, paid", "13": "Bill, issued by a corporation or alliance, paid", "14": "Bounty claimed", "15": "Clone activated", "16": "New corp member application", "17": "Corp application rejected", "18": "Corp application accepted", "19": "Corp tax rate changed", "20": "Corp news report, typically for shareholders", "21": "Player leaves corp", "22": "Corp news, new CEO", "23": "Corp dividend/liquidation, sent to shareholders", "24": "Corp dividend payout, sent to shareholders", "25": "Corp vote created", "26": "Corp CEO votes revoked during voting", "27": "Corp declares war", "28": "Corp war has started", "29": "Corp surrenders war", "30": "Corp retracts war", "31": "Corp war invalidated by Concord", "32": "Container password retrieval", "33": "Contraband or low standings cause an attack or items being confiscated", "34": "First ship insurance", "35": "Ship destroyed, insurance payed", "36": "Insurance contract invalidated/runs out", "37": "Sovereignty claim fails (alliance)", "38": "Sovereignty claim fails (corporation)", "39": "Sovereignty bill late (alliance)", "40": "Sovereignty bill late (corporation)", "41": "Sovereignty claim lost (alliance)", "42": "Sovereignty claim lost (corporation)", "43": "Sovereignty claim acquired (alliance)", "44": "Sovereignty claim acquired (corporation)", "45": "Alliance anchoring alert", "46": "Alliance structure turns vulnerable", "47": "Alliance structure turns invulnerable", "48": "Sovereignty disruptor anchored", "49": "Structure won/lost", "50": "Corp office lease expiration notice", "51": "Clone contract revoked by station manager", "52": "Corp member clones moved between stations", "53": "Clone contract revoked by station manager", "54": "Insurance contract expired", "55": "Insurance contract issued", "56": "Jump clone destroyed", "57": "Jump clone destroyed", "58": "Corporation joining factional warfare", "59": "Corporation leaving factional warfare", "60": "Corporation kicked from factional warfare on startup because of too low standing to the faction", "61": "Character kicked from factional warfare on startup because of too low standing to the faction", "62": "Corporation in factional warfare warned on startup because of too low standing to the faction", "63": "Character in factional warfare warned on startup because of too low standing to the faction", "64": "Character loses factional warfare rank", "65": "Character gains factional warfare rank", "66": "Agent has moved", "67": "Mass transaction reversal message", "68": "Reimbursement message", "69": "Agent locates a character", "70": "Research mission becomes available from an agent", "71": "Agent mission offer expires", "72": "Agent mission times out", "73": "Agent offers a storyline mission", "74": "Tutorial message sent on character creation", "75": "Tower alert", "76": "Tower resource alert", "77": "Station aggression message", "78": "Station state change message", "79": "Station conquered message", "80": "Station aggression message", "81": "Corporation requests joining factional warfare", "82": "Corporation requests leaving factional warfare", "83": "Corporation withdrawing a request to join factional warfare", "84": "Corporation withdrawing a request to leave factional warfare", "85": "Corporation liquidation", "86": "Territorial Claim Unit under attack", "87": "Sovereignty Blockade Unit under attack", "88": "Infrastructure Hub under attack", "89": "Contact add notification", "90": "Contact edit notification", "91": "Incursion Completed", "92": "Corp Kicked", "93": "Customs office has been attacked", "94": "Customs office has entered reinforced", "95": "Customs office has been transferred", "96": "FW Alliance Warning", "97": "FW Alliance Kick", "98": "AllWarCorpJoined Msg", "99": "Ally Joined Defender", "100": "Ally Has Joined a War Aggressor", "101": "Ally Joined War Ally", "102": "New war system: entity is offering assistance in a war.", "103": "War Surrender Offer", "104": "War Surrender Declined", "105": "FacWar LP Payout Kill", "106": "FacWar LP Payout Event", "107": "FacWar LP Disqualified Eventd", "108": "FacWar LP Disqualified Kill", "109": "Alliance Contract Cancelled", "110": "War Ally Declined Offer", "111": "Your Bounty Was Claimed", "112": "Bounty placed (Char)", "113": "Bounty Placed (Corp)", "114": "Bounty Placed (Alliance)", "115": "Kill Right Available", "116": "Kill right Available Open", "117": "Kill Right Earned", "118": "Kill right Used", "119": "Kill Right Unavailable", "120": "Kill Right Unavailable Open", "121": "Declare War", "122": "Offered Surrender", "123": "Accepted Surrender", "124": "Made War Mutual", "125": "Retracts War", "126": "Offered To Ally", "127": "Accepted Ally", "128": "Character Application Accept", "129": "Character Application Reject", "130": "Character Application Withdraw", "138": "Clone activated", "140": "Loss report available", "141": "Kill report available", "147": "Entosis Link started", "148": "Entosis Link enabled a module", "149": "Entosis Link disabled a module", "131": "DustAppAcceptedMsg ?", "132": "DistrictAttacked ?", "133": "BattlePunishFriendlyFire ?", "134": "BountyESSTaken ?", "135": "BountyESSShared ?", "136": "IndustryTeamAuctionWon ?", "137": "IndustryTeamAuctionLost ?", "139": "Corporation invitation accepted (CorpAppInvitedMsg)", "142": "Corporation application rejected (CorpAppRejectCustomMsg)", "143": "Friendly fire enable timer started (CorpFriendlyFireEnableTimerStarted)", "144": "Friendly fire disable timer started (CorpFriendlyFireDisableTimerStarted)", "145": "Friendly fire enable timer completed (CorpFriendlyFireEnableTimerCompleted)", "146": "Friendly fire disable timer completed (CorpFriendlyFireDisableTimerCompleted)", "152": "Infrastructure hub bill about to expire (InfrastructureHubBillAboutToExpire)", "160": "Sovereignty structure reinforced (SovStructureReinforced)", "161": "SovCommandNodeEventStarted ?", "162": "Sovereignty structure destroyed (SovStructureDestroyed)", "163": "SovStationEnteredFreeport ?", "164": "IHubDestroyedByBillFailure ?", "166": "BuddyConnectContactAdd ?", "165": "Alliance capital changed (AllianceCapitalChanged)", "167": "Sovereignty structure self destruction requested (SovStructureSelfDestructRequested)", "168": "Sovereignty structure self destruction canceled (SovStructureSelfDestructCancel)", "169": "Sovereignty structure self destruction completed (SovStructureSelfDestructFinished)", "181": "Structure fuel alert (StructureFuelAlert)", "182": "Structure anchoring started (StructureAnchoring)", "183": "Structure unanchoring started (StructureUnanchoring)", "184": "Structure under attack (StructureUnderAttack)", "185": "Structure Online (StructureOnline)", "186": "Structure lost shields (StructureLostShields)", "187": "Structure lost Armor (StructureLostArmor)", "188": "Structure destroyed (StructureDestroyed)", "198": "Structure service offline (StructureServicesOffline)", "199": "Item delivered (StructureItemsDelivered)", "201": "StructureCourierContractChanged ?", "1012": "OperationFinished ?", "1030": "Game time received (GameTimeReceived)", "1031": "Game time sent (GameTimeSent)"} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment