Python browser.Browser() Examples
The following are 10
code examples of browser.Browser().
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example.
You may also want to check out all available functions/classes of the module
browser
, or try the search function
.
Example #1
Source File: base.py From vanguard-api with MIT License | 5 votes |
def __init__(self): self.browser = Browser() self.start_browser() self.logged_in = False
Example #2
Source File: test_browser.py From vanguard-api with MIT License | 5 votes |
def setUp(self): self.b = Browser() self.b.start()
Example #3
Source File: translate.py From doork with MIT License | 5 votes |
def __init__(self): self.browser = Browser()
Example #4
Source File: translate.py From doork with MIT License | 5 votes |
def __init__(self): self.browser = Browser()
Example #5
Source File: googlesets.py From doork with MIT License | 5 votes |
def __init__(self, items, random_agent=False, debug=False): self.items = items self.debug = debug self.browser = Browser(debug=debug) if random_agent: self.browser.set_random_user_agent()
Example #6
Source File: sponsoredlinks.py From doork with MIT License | 5 votes |
def __init__(self, query, random_agent=False, debug=False): self.query = query self.debug = debug self.browser = Browser(debug=debug) self._page = 0 self.eor = False self.results_info = None self._results_per_page = 10 if random_agent: self.browser.set_random_user_agent()
Example #7
Source File: search.py From doork with MIT License | 5 votes |
def __init__(self, query, random_agent=False, debug=False, lang="en", tld="com", re_search_strings=None): self.query = query self.debug = debug self.browser = Browser(debug=debug) self.results_info = None self.eor = False # end of results self._page = 0 self._first_indexed_in_previous = None self._filetype = None self._last_search_url = None self._results_per_page = 10 self._last_from = 0 self._lang = lang self._tld = tld if re_search_strings: self._re_search_strings = re_search_strings elif lang == "de": self._re_search_strings = ("Ergebnisse", "von", u"ungefähr") elif lang == "es": self._re_search_strings = ("Resultados", "de", "aproximadamente") # add more localised versions here else: self._re_search_strings = ("Results", "of", "about") if random_agent: self.browser.set_random_user_agent()
Example #8
Source File: googlesets.py From fimap with GNU General Public License v2.0 | 5 votes |
def __init__(self, items, random_agent=False, debug=False): self.items = items self.debug = debug self.browser = Browser(debug=debug) if random_agent: self.browser.set_random_user_agent()
Example #9
Source File: sponsoredlinks.py From fimap with GNU General Public License v2.0 | 5 votes |
def __init__(self, query, random_agent=False, debug=False): self.query = query self.debug = debug self.browser = Browser(debug=debug) self._page = 0 self.eor = False self.results_info = None self._results_per_page = 10 if random_agent: self.browser.set_random_user_agent()
Example #10
Source File: search.py From fimap with GNU General Public License v2.0 | 5 votes |
def __init__(self, query, random_agent=False, debug=False, page=0): self.query = query self.debug = debug self.browser = Browser(debug=debug) self.results_info = None self.eor = False # end of results self._page = page self._results_per_page = 10 self._last_from = 0 if random_agent: self.browser.set_random_user_agent()