i read a few examples and i think i can write the function it self.
i am not sure i know how to use it. or how to call on it.
i got this far:
Spoiler:
Code:
# def append_page(self, soup, appendtag, position):
# rec_index = rec_index +'1'
# stop = soup.find('td',attrs={'height':'19'})
# reportnum = stop.findnext('b')
# num = self.tag_to_string(reportnum)
# articles_left =num - '30'
# if (articles_left <'0') :
# request = = urllib.urlencode([('rsSearchRes_pgNo',rec_index)])
# nexturl = br.open(url, request)
## soup2 = self.index_to_soup(nexturl)
# texttag = soup2.find('div', attrs={'class':'bodytext'})
# for it in texttag.findAll(style=True):
# del it['style']
# newpos = len(texttag.contents)
# self.append_page(soup2,texttag,newpos)
# texttag.extract()
# appendtag.insert(position,texttag)
but now i am lost. i dont know where i am going with this. can someone focus me again?