Esempio n. 1
0
 def test_scrape_moogaloop(self):
     flashscraper.try_scraping_url(
         u'http://vimeo.com/moogaloop.swf?clip_id=42231616',
         self.scrape_callback)
     self.run_event_loop()
     self.assertNotEqual(self._response, None)
     self.assertNotEqual(self._response[0], None)
     self.assertEqual(self._response[1], 'video/mp4')
Esempio n. 2
0
 def test_scrape(self):
     flashscraper.try_scraping_url(
         u'http://vimeo.com/42231616',
         self.scrape_callback)
     self.run_event_loop()
     self.assertNotEqual(self._response, None)
     self.assertNotEqual(self._response[0], None)
     self.assertEqual(type(self._response[1]), unicode)
     self.assertEqual(self._response[1], u'video/mp4')
Esempio n. 3
0
 def run_downloader(self):
     """This is the actual download thread.
     """
     flashscraper.try_scraping_url(self.url, self._run_downloader)
Esempio n. 4
0
 def run_downloader(self):
     """This is the actual download thread.
     """
     flashscraper.try_scraping_url(self.url, self._run_downloader)
Esempio n. 5
0
 def test_scrape(self):
     flashscraper.try_scraping_url(
         u"http://www.youtube.com/watch?v=3DTKMp24c0s",
         self.scrape_callback)
     self.run_event_loop()
Esempio n. 6
0
 def test_scrape(self):
     flashscraper.try_scraping_url(
         u"http://www.youtube.com/watch?v=3DTKMp24c0s",
         self.scrape_callback)
     self.run_event_loop()