def download_observations(observer_code):
page_number = <NUM_LIT:1><EOL>observations = []<EOL>while True:<EOL><INDENT>logger.info('<STR_LIT>', page_number)<EOL>response = requests.get(WEBOBS_RESULTS_URL, params={<EOL>'<STR_LIT>': observer_code,<EOL>'<STR_LIT>': <NUM_LIT:200>,<EOL>'<STR_LIT>': '<STR_LIT:all>',<EOL>'<STR_LIT>': page_number,<EOL>})<EOL>logger.debug(response.request.url)<EOL>parser = WebObsResultsParser(response.text)<EOL>observations.extend(parser.get_observations())<EOL>if '<STR_LIT>' not in response.text:<EOL><INDENT>break<EOL><DEDENT>page_number += <NUM_LIT:1><EOL><DEDENT>return observations<EOL>
Downloads all variable star observations by a given observer.

Performs a series of HTTP requests to AAVSO's WebObs search and
downloads the results page by page. Each page is then passed to
:py:class:`~pyaavso.parsers.webobs.WebObsResultsParser` and parse results
are added to the final observation list.