from wizzair_scraper import WizzairPage
from ryan_scraper import RyanPage
from easyjet_scraper import EasyjetPage
import logging
import datetime

logger = logging.getLogger("scrapper")
logging.basicConfig()

class Runner:
	def __init__(self):
		self.clients = [RyanPage, WizzairPage, EasyjetPage]
		
		self.failed = []
	def start(self, threads):
		logger.setLevel(logging.INFO)
		date = datetime.date(2015, 10, 27)
		for i in [0, 3, 6, 9]:
			departure_date = date.isoformat()
			date = date + datetime.timedelta(days=5)
			return_date = date.isoformat()
			
			for client in self.clients:
				c = client()
				c.run(threads, "GDN", departure_date, return_date)
		
		with open("failed.log", "w") as file:
			for f in self.failed:
				file.write(",".join([str(x) for x in f] ) +"\n")
				
if __name__ == "__main__":
	r = Runner()
	r.start(10)
	#x = EasyjetPage()	
	#x.debug()
		
7664a9ed9ef94729b9c9087aba116aff57ccb274
<mask token>


class Runner:

    def __init__(self):
        self.clients = [RyanPage, WizzairPage, EasyjetPage]
        self.failed = []

    def start(self, threads):
        logger.setLevel(logging.INFO)
        date = datetime.date(2015, 10, 27)
        for i in [0, 3, 6, 9]:
            departure_date = date.isoformat()
            date = date + datetime.timedelta(days=5)
            return_date = date.isoformat()
            for client in self.clients:
                c = client()
                c.run(threads, 'GDN', departure_date, return_date)
        with open('failed.log', 'w') as file:
            for f in self.failed:
                file.write(','.join([str(x) for x in f]) + '\n')


<mask token>

<mask token>
logging.basicConfig()


class Runner:

    def __init__(self):
        self.clients = [RyanPage, WizzairPage, EasyjetPage]
        self.failed = []

    def start(self, threads):
        logger.setLevel(logging.INFO)
        date = datetime.date(2015, 10, 27)
        for i in [0, 3, 6, 9]:
            departure_date = date.isoformat()
            date = date + datetime.timedelta(days=5)
            return_date = date.isoformat()
            for client in self.clients:
                c = client()
                c.run(threads, 'GDN', departure_date, return_date)
        with open('failed.log', 'w') as file:
            for f in self.failed:
                file.write(','.join([str(x) for x in f]) + '\n')


if __name__ == '__main__':
    r = Runner()
    r.start(10)

<mask token>
logger = logging.getLogger('scrapper')
logging.basicConfig()


class Runner:

    def __init__(self):
        self.clients = [RyanPage, WizzairPage, EasyjetPage]
        self.failed = []

    def start(self, threads):
        logger.setLevel(logging.INFO)
        date = datetime.date(2015, 10, 27)
        for i in [0, 3, 6, 9]:
            departure_date = date.isoformat()
            date = date + datetime.timedelta(days=5)
            return_date = date.isoformat()
            for client in self.clients:
                c = client()
                c.run(threads, 'GDN', departure_date, return_date)
        with open('failed.log', 'w') as file:
            for f in self.failed:
                file.write(','.join([str(x) for x in f]) + '\n')


if __name__ == '__main__':
    r = Runner()
    r.start(10)

from wizzair_scraper import WizzairPage
from ryan_scraper import RyanPage
from easyjet_scraper import EasyjetPage
import logging
import datetime
logger = logging.getLogger('scrapper')
logging.basicConfig()


class Runner:

    def __init__(self):
        self.clients = [RyanPage, WizzairPage, EasyjetPage]
        self.failed = []

    def start(self, threads):
        logger.setLevel(logging.INFO)
        date = datetime.date(2015, 10, 27)
        for i in [0, 3, 6, 9]:
            departure_date = date.isoformat()
            date = date + datetime.timedelta(days=5)
            return_date = date.isoformat()
            for client in self.clients:
                c = client()
                c.run(threads, 'GDN', departure_date, return_date)
        with open('failed.log', 'w') as file:
            for f in self.failed:
                file.write(','.join([str(x) for x in f]) + '\n')


if __name__ == '__main__':
    r = Runner()
    r.start(10)

from wizzair_scraper import WizzairPage
from ryan_scraper import RyanPage
from easyjet_scraper import EasyjetPage
import logging
import datetime

logger = logging.getLogger("scrapper")
logging.basicConfig()

class Runner:
	def __init__(self):
		self.clients = [RyanPage, WizzairPage, EasyjetPage]
		
		self.failed = []
	def start(self, threads):
		logger.setLevel(logging.INFO)
		date = datetime.date(2015, 10, 27)
		for i in [0, 3, 6, 9]:
			departure_date = date.isoformat()
			date = date + datetime.timedelta(days=5)
			return_date = date.isoformat()
			
			for client in self.clients:
				c = client()
				c.run(threads, "GDN", departure_date, return_date)
		
		with open("failed.log", "w") as file:
			for f in self.failed:
				file.write(",".join([str(x) for x in f] ) +"\n")
				
if __name__ == "__main__":
	r = Runner()
	r.start(10)
	#x = EasyjetPage()	
	#x.debug()
		