Last active
June 6, 2016 21:23
-
-
Save psmolak/f6edbeff1453c80d6ce1167eb723b409 to your computer and use it in GitHub Desktop.
List of all OGame communities along with servers.
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
s101-ar.ogame.gameforge.com | |
s111-ar.ogame.gameforge.com | |
s114-ar.ogame.gameforge.com | |
s115-ar.ogame.gameforge.com | |
s116-ar.ogame.gameforge.com | |
s117-ar.ogame.gameforge.com | |
s101-br.ogame.gameforge.com | |
s103-br.ogame.gameforge.com | |
s106-br.ogame.gameforge.com | |
s115-br.ogame.gameforge.com | |
s121-br.ogame.gameforge.com | |
s123-br.ogame.gameforge.com | |
s124-br.ogame.gameforge.com | |
s125-br.ogame.gameforge.com | |
s104-dk.ogame.gameforge.com | |
s113-dk.ogame.gameforge.com | |
s114-dk.ogame.gameforge.com | |
s115-dk.ogame.gameforge.com | |
s116-dk.ogame.gameforge.com | |
s1-dk.ogame.gameforge.com | |
s204-de.ogame.gameforge.com | |
s127-de.ogame.gameforge.com | |
s129-de.ogame.gameforge.com | |
s130-de.ogame.gameforge.com | |
s131-de.ogame.gameforge.com | |
s132-de.ogame.gameforge.com | |
s133-de.ogame.gameforge.com | |
s134-de.ogame.gameforge.com | |
s135-de.ogame.gameforge.com | |
s136-de.ogame.gameforge.com | |
s137-de.ogame.gameforge.com | |
s138-de.ogame.gameforge.com | |
s139-de.ogame.gameforge.com | |
s140-de.ogame.gameforge.com | |
s105-de.ogame.gameforge.com | |
s115-de.ogame.gameforge.com | |
s121-de.ogame.gameforge.com | |
s122-de.ogame.gameforge.com | |
s124-de.ogame.gameforge.com | |
s125-de.ogame.gameforge.com | |
s1-de.ogame.gameforge.com | |
s79-de.ogame.gameforge.com | |
s82-de.ogame.gameforge.com | |
s127-es.ogame.gameforge.com | |
s128-es.ogame.gameforge.com | |
s130-es.ogame.gameforge.com | |
s134-es.ogame.gameforge.com | |
s136-es.ogame.gameforge.com | |
s137-es.ogame.gameforge.com | |
s138-es.ogame.gameforge.com | |
s139-es.ogame.gameforge.com | |
s140-es.ogame.gameforge.com | |
s101-es.ogame.gameforge.com | |
s106-es.ogame.gameforge.com | |
s116-es.ogame.gameforge.com | |
s117-es.ogame.gameforge.com | |
s119-es.ogame.gameforge.com | |
s124-es.ogame.gameforge.com | |
s126-es.ogame.gameforge.com | |
s1-es.ogame.gameforge.com | |
s50-es.ogame.gameforge.com | |
s204-fr.ogame.gameforge.com | |
s127-fr.ogame.gameforge.com | |
s128-fr.ogame.gameforge.com | |
s131-fr.ogame.gameforge.com | |
s133-fr.ogame.gameforge.com | |
s134-fr.ogame.gameforge.com | |
s135-fr.ogame.gameforge.com | |
s136-fr.ogame.gameforge.com | |
s132-fr.ogame.gameforge.com | |
s137-fr.ogame.gameforge.com | |
s138-fr.ogame.gameforge.com | |
s139-fr.ogame.gameforge.com | |
s140-fr.ogame.gameforge.com | |
s141-fr.ogame.gameforge.com | |
s106-fr.ogame.gameforge.com | |
s119-fr.ogame.gameforge.com | |
s120-fr.ogame.gameforge.com | |
s122-fr.ogame.gameforge.com | |
s123-fr.ogame.gameforge.com | |
s126-fr.ogame.gameforge.com | |
s1-fr.ogame.gameforge.com | |
s10-fr.ogame.gameforge.com | |
s67-fr.ogame.gameforge.com | |
s109-hr.ogame.gameforge.com | |
s128-it.ogame.gameforge.com | |
s129-it.ogame.gameforge.com | |
s130-it.ogame.gameforge.com | |
s131-it.ogame.gameforge.com | |
s132-it.ogame.gameforge.com | |
s133-it.ogame.gameforge.com | |
s134-it.ogame.gameforge.com | |
s135-it.ogame.gameforge.com | |
s136-it.ogame.gameforge.com | |
s137-it.ogame.gameforge.com | |
s138-it.ogame.gameforge.com | |
s139-it.ogame.gameforge.com | |
s101-it.ogame.gameforge.com | |
s114-it.ogame.gameforge.com | |
s115-it.ogame.gameforge.com | |
s1-it.ogame.gameforge.com | |
s40-it.ogame.gameforge.com | |
s101-hu.ogame.gameforge.com | |
s102-hu.ogame.gameforge.com | |
s108-hu.ogame.gameforge.com | |
s115-hu.ogame.gameforge.com | |
s116-hu.ogame.gameforge.com | |
s117-hu.ogame.gameforge.com | |
s118-hu.ogame.gameforge.com | |
s101-mx.ogame.gameforge.com | |
s110-mx.ogame.gameforge.com | |
s112-mx.ogame.gameforge.com | |
s113-mx.ogame.gameforge.com | |
s104-nl.ogame.gameforge.com | |
s107-nl.ogame.gameforge.com | |
s116-nl.ogame.gameforge.com | |
s117-nl.ogame.gameforge.com | |
s118-nl.ogame.gameforge.com | |
s119-nl.ogame.gameforge.com | |
s120-nl.ogame.gameforge.com | |
s121-nl.ogame.gameforge.com | |
s3-nl.ogame.gameforge.com | |
s101-no.ogame.gameforge.com | |
s127-pl.ogame.gameforge.com | |
s128-pl.ogame.gameforge.com | |
s129-pl.ogame.gameforge.com | |
s130-pl.ogame.gameforge.com | |
s131-pl.ogame.gameforge.com | |
s132-pl.ogame.gameforge.com | |
s133-pl.ogame.gameforge.com | |
s134-pl.ogame.gameforge.com | |
s135-pl.ogame.gameforge.com | |
s136-pl.ogame.gameforge.com | |
s137-pl.ogame.gameforge.com | |
s138-pl.ogame.gameforge.com | |
s139-pl.ogame.gameforge.com | |
s140-pl.ogame.gameforge.com | |
s104-pl.ogame.gameforge.com | |
s114-pl.ogame.gameforge.com | |
s117-pl.ogame.gameforge.com | |
s120-pl.ogame.gameforge.com | |
s123-pl.ogame.gameforge.com | |
s125-pl.ogame.gameforge.com | |
s126-pl.ogame.gameforge.com | |
s68-pl.ogame.gameforge.com | |
s103-pt.ogame.gameforge.com | |
s117-pt.ogame.gameforge.com | |
s121-pt.ogame.gameforge.com | |
s122-pt.ogame.gameforge.com | |
s123-pt.ogame.gameforge.com | |
s124-pt.ogame.gameforge.com | |
s125-pt.ogame.gameforge.com | |
s126-pt.ogame.gameforge.com | |
s25-pt.ogame.gameforge.com | |
s110-ro.ogame.gameforge.com | |
s113-ro.ogame.gameforge.com | |
s115-ro.ogame.gameforge.com | |
s116-ro.ogame.gameforge.com | |
s1-ro.ogame.gameforge.com | |
s101-si.ogame.gameforge.com | |
s101-sk.ogame.gameforge.com | |
s108-sk.ogame.gameforge.com | |
s102-fi.ogame.gameforge.com | |
s103-fi.ogame.gameforge.com | |
s103-se.ogame.gameforge.com | |
s105-se.ogame.gameforge.com | |
s107-se.ogame.gameforge.com | |
s128-tr.ogame.gameforge.com | |
s131-tr.ogame.gameforge.com | |
s132-tr.ogame.gameforge.com | |
s133-tr.ogame.gameforge.com | |
s134-tr.ogame.gameforge.com | |
s135-tr.ogame.gameforge.com | |
s136-tr.ogame.gameforge.com | |
s137-tr.ogame.gameforge.com | |
s138-tr.ogame.gameforge.com | |
s101-tr.ogame.gameforge.com | |
s108-tr.ogame.gameforge.com | |
s116-tr.ogame.gameforge.com | |
s120-tr.ogame.gameforge.com | |
s121-tr.ogame.gameforge.com | |
s1-tr.ogame.gameforge.com | |
s50-tr.ogame.gameforge.com | |
s128-us.ogame.gameforge.com | |
s129-us.ogame.gameforge.com | |
s130-us.ogame.gameforge.com | |
s116-us.ogame.gameforge.com | |
s1-us.ogame.gameforge.com | |
s204-en.ogame.gameforge.com | |
s128-en.ogame.gameforge.com | |
s129-en.ogame.gameforge.com | |
s130-en.ogame.gameforge.com | |
s131-en.ogame.gameforge.com | |
s132-en.ogame.gameforge.com | |
s133-en.ogame.gameforge.com | |
s134-en.ogame.gameforge.com | |
s135-en.ogame.gameforge.com | |
s136-en.ogame.gameforge.com | |
s137-en.ogame.gameforge.com | |
s138-en.ogame.gameforge.com | |
s139-en.ogame.gameforge.com | |
s117-en.ogame.gameforge.com | |
s118-en.ogame.gameforge.com | |
s120-en.ogame.gameforge.com | |
s122-en.ogame.gameforge.com | |
s123-en.ogame.gameforge.com | |
s1-en.ogame.gameforge.com | |
s101-cz.ogame.gameforge.com | |
s102-cz.ogame.gameforge.com | |
s110-cz.ogame.gameforge.com | |
s111-cz.ogame.gameforge.com | |
s119-cz.ogame.gameforge.com | |
s123-cz.ogame.gameforge.com | |
s124-cz.ogame.gameforge.com | |
s112-gr.ogame.gameforge.com | |
s115-gr.ogame.gameforge.com | |
s116-gr.ogame.gameforge.com | |
s1-gr.ogame.gameforge.com | |
s127-ru.ogame.gameforge.com | |
s128-ru.ogame.gameforge.com | |
s129-ru.ogame.gameforge.com | |
s130-ru.ogame.gameforge.com | |
s131-ru.ogame.gameforge.com | |
s132-ru.ogame.gameforge.com | |
s133-ru.ogame.gameforge.com | |
s134-ru.ogame.gameforge.com | |
s101-ru.ogame.gameforge.com | |
s103-ru.ogame.gameforge.com | |
s119-ru.ogame.gameforge.com | |
s125-ru.ogame.gameforge.com | |
s1-ru.ogame.gameforge.com | |
s101-tw.ogame.gameforge.com | |
s115-tw.ogame.gameforge.com | |
s116-tw.ogame.gameforge.com | |
s117-tw.ogame.gameforge.com | |
s101-jp.ogame.gameforge.com |
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
#! /usr/bin/python3 | |
from bs4 import BeautifulSoup | |
import requests | |
BASE = 'https://pl.ogame.gameforge.com' | |
OGAME = 'ogame.gameforge.com' | |
def list_comm(url): | |
""" | |
List url for all community | |
""" | |
r = requests.get(url, verify=False) | |
soup = BeautifulSoup(r.text, 'html.parser') | |
tags = soup.find(id="mmoList1").find_all('a') | |
for tag in tags: | |
yield tag.get('href')[2:].split('/')[0] | |
def list_serv(url): | |
""" | |
Return all server indicators for a given community url | |
""" | |
r = requests.request('GET', 'http://' + url, verify=False, allow_redirects=True) | |
soup = BeautifulSoup(r.text, 'html.parser') | |
tags = soup.find(id="serverLogin").find_all('option') | |
for tag in tags: | |
yield tag.get('value').split('.')[0] | |
if __name__ == "__main__": | |
for comm in list_comm(BASE): | |
for serv in list_serv(comm): | |
print(serv + '.' + OGAME) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment