Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions handelsregister.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ def __init__(self, args):
self.cachedir.mkdir(parents=True, exist_ok=True)

def open_startpage(self):
self.browser.open("https://www.handelsregister.de", timeout=10)
self.browser.open(mechanize.Request("https://www.handelsregister.de/rp_web/erweitertesuche.xhtml", method="POST"), timeout=10)

def companyname2cachename(self, companyname):
# map a companyname to a filename, that caches the downloaded HTML, so re-running this script touches the
Expand All @@ -68,7 +68,6 @@ def search_company(self):
else:
# TODO implement token bucket to abide by rate limit
# Use an atomic counter: https://gist.github.com/benhoyt/8c8a8d62debe8e5aa5340373f9c509c7
response_search = self.browser.follow_link(text="Advanced search")

if self.args.debug == True:
print(self.browser.title())
Expand Down