def get_records(self, url):
page = urllib2.urlopen(url)<EOL>pages = [BeautifulSoup(page)]<EOL>numpag = pages[<NUM_LIT:0>].body.findAll('<STR_LIT>', attrs={'<STR_LIT:class>': '<STR_LIT>'})<EOL>if len(numpag) > <NUM_LIT:0>:<EOL><INDENT>if re.search('<STR_LIT>', numpag[<NUM_LIT:0>].string):<EOL><INDENT>for i in range(int(numpag[<NUM_LIT:0>].string)-<NUM_LIT:1>):<EOL><INDENT>page = urllib2.urlopen('<STR_LIT>' % (url, i+<NUM_LIT:2>))<EOL>pages.append(BeautifulSoup(page))<EOL><DEDENT><DEDENT>else:<EOL><INDENT>print("<STR_LIT>" % (numpag[<NUM_LIT:0>].string))<EOL><DEDENT><DEDENT>impl = getDOMImplementation()<EOL>doc = impl.createDocument(None, "<STR_LIT>", None)<EOL>links = []<EOL>for page in pages:<EOL><INDENT>links += page.body.findAll('<STR_LIT:p>', attrs={'<STR_LIT:class>': '<STR_LIT:title>'})<EOL>links += page.body.findAll('<STR_LIT>', attrs={'<STR_LIT:class>': '<STR_LIT:title>'})<EOL><DEDENT>for link in links:<EOL><INDENT>record = self._get_record(link)<EOL>doc.firstChild.appendChild(record)<EOL><DEDENT>return doc.toprettyxml()<EOL>
Returns the records listed in the webpage given as
parameter as a xml String.

@param url: the url of the Journal, Book, Protocol or Reference work