Exemplo n.º 1
0
 def test10(self):
     q = GoogleQuery('info',
                     'стол',
                     region='Washington',
                     start=2,
                     num=50,
                     custom_params='oq=table&psi=1231231231')
     self.assertEqual(
         q.get_url(),
         'https://www.google.info/search?q=%D1%81%D1%82%D0%BE%D0%BB&num=50&start=100&as_dt=e&near=Washington&oq=table&psi=1231231231'
     )
Exemplo n.º 2
0
 def test11(self):
     q = GoogleQuery('com.uag',
                     'стол',
                     region='Washington',
                     start=2,
                     num=50,
                     custom_params='oq=table&psi=1231231231')
     self.assertEqual(
         q.get_url(),
         'https://www.google.com.ua/search?q=%D1%81%D1%82%D0%BE%D0%BB&num=50&start=100&hl=ru&tbs=ctr:countryUA&cr=countryUA&as_dt=e&near=Washington&oq=table&psi=1231231231'
     )
Exemplo n.º 3
0
 def test1(self):
     q = GoogleQuery('ru', 'стол')
     self.assertEqual(
         q.get_url(),
         'https://www.google.ru/search?q=%D1%81%D1%82%D0%BE%D0%BB&num=10&as_dt=e'
     )
Exemplo n.º 4
0
 def test8(self):
     q = GoogleQuery('com', 'стол', region='Washington', start=2, num=50)
     self.assertEqual(
         q.get_url(),
         'https://www.google.com/search?q=%D1%81%D1%82%D0%BE%D0%BB&num=50&start=100&hl=en&gl=US&gr=US-UT&gcs=NewYork&as_dt=e&near=Washington'
     )
Exemplo n.º 5
0
 def test9(self):
     q = GoogleQuery('info', 'стол', region='Washington', start=2, num=50)
     self.assertEqual(
         q.get_url(),
         'https://www.google.info/search?q=%D1%81%D1%82%D0%BE%D0%BB&num=50&start=100&as_dt=e&near=Washington'
     )
Exemplo n.º 6
0
 def test1(self):
     q = GoogleQuery('ru', 'стол')
     self.assertEqual(q.get_url(), 'https://www.google.ru/search?q=%D1%81%D1%82%D0%BE%D0%BB&num=10&as_dt=e')
Exemplo n.º 7
0
 def test6(self):
     q = GoogleQuery('ru', 'стол', region='Москва', start=2, num=50)
     self.assertEqual(
         q.get_url(),
         'https://www.google.ru/search?q=%D1%81%D1%82%D0%BE%D0%BB&num=50&start=100&as_dt=e&near=%D0%9C%D0%BE%D1%81%D0%BA%D0%B2%D0%B0'
     )
Exemplo n.º 8
0
 def test11(self):
     q = GoogleQuery('com.uag', 'стол', region='Washington', start=2, num=50, custom_params='oq=table&psi=1231231231')
     self.assertEqual(q.get_url(), 'https://www.google.com.ua/search?q=%D1%81%D1%82%D0%BE%D0%BB&num=50&start=100&hl=ru&tbs=ctr:countryUA&cr=countryUA&as_dt=e&near=Washington&oq=table&psi=1231231231')
Exemplo n.º 9
0
 def test10(self):
     q = GoogleQuery('info', 'стол', region='Washington', start=2, num=50, custom_params='oq=table&psi=1231231231')
     self.assertEqual(q.get_url(), 'https://www.google.info/search?q=%D1%81%D1%82%D0%BE%D0%BB&num=50&start=100&as_dt=e&near=Washington&oq=table&psi=1231231231')
Exemplo n.º 10
0
 def test9(self):
     q = GoogleQuery('info', 'стол', region='Washington', start=2, num=50)
     self.assertEqual(q.get_url(), 'https://www.google.info/search?q=%D1%81%D1%82%D0%BE%D0%BB&num=50&start=100&as_dt=e&near=Washington')
Exemplo n.º 11
0
 def test8(self):
     q = GoogleQuery('com', 'стол', region='Washington', start=2, num=50)
     self.assertEqual(q.get_url(), 'https://www.google.com/search?q=%D1%81%D1%82%D0%BE%D0%BB&num=50&start=100&hl=en&gl=US&gr=US-UT&gcs=NewYork&as_dt=e&near=Washington')
Exemplo n.º 12
0
 def test6(self):
     q = GoogleQuery('ru', 'стол', region='Москва', start=2, num=50)
     self.assertEqual(q.get_url(), 'https://www.google.ru/search?q=%D1%81%D1%82%D0%BE%D0%BB&num=50&start=100&as_dt=e&near=%D0%9C%D0%BE%D1%81%D0%BA%D0%B2%D0%B0')