Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Possibly outdated #2

Open
FelixWeichselgartner opened this issue Jan 27, 2023 · 3 comments
Open

Possibly outdated #2

FelixWeichselgartner opened this issue Jan 27, 2023 · 3 comments

Comments

@FelixWeichselgartner
Copy link

import InsolvencyAnnouncementsGer as ia

ia.insol_proc_scr(reg = ["HRA", "HRB"], state = "Berlin",date_from = "30.08.2022", date_to = "", name = "",
                  domicile = "", department_number = "", register_reference = "", seq_number  = "", year = "",
                  reg_court = "", reg_number = "", subject = "", search_type = "unlimited", ins_court = "",
                  scrape_html = True)

returns

  File "InsolvencyAnnouncementsGer.py", line 208, in insol_proc_scr
    text = soup.find_all('table')[1].find_all('p')[0].find_all('b')[0].get_text()
IndexError: list index out of range

with the variable soup being

Register type: HRA
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">

<html><head>
<title>403 Forbidden</title>
</head><body>
<h1>Forbidden</h1>
<p>You don't have permission to access this resource.</p>
</body></html>

My guess is that something is outdated. Going to dig into it and post here...

@FelixWeichselgartner
Copy link
Author

seems like
alt.insolvenzbekanntmachungen.de
does not exist anymore and
neu.insolvenzbekanntmachungen.de
should be used.

@jurekvisionneo
Copy link

Hi @FelixWeichselgartner
how did you solve the issue? I am encountering the same problem even though I have changed the URL to "neu.insolvenzbekanntmachungen.de". Is there any other change I have to make? Thanks in advance

@FelixWeichselgartner
Copy link
Author

@jurekvisionneo
changing the url did not solve the problem for me either
I did not further investigate this problem
Keep me posted if you solve the problem

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants