deutschland icon indicating copy to clipboard operation
deutschland copied to clipboard

jobsuche is broken, also no working example or information how to auth

Open StoyanStAtanasov opened this issue 10 months ago • 2 comments

Image

The code:

from deutschland import jobsuche
from pprint import pprint
from deutschland.jobsuche.api import default_api

import urllib3
urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning)

configuration = jobsuche.Configuration(
    host = "https://api-con.arbeitsagentur.de/prod/jobboerse/jobsuche-service",
)
configuration.verify_ssl = False

# Enter a context with an instance of the API client
with jobsuche.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = default_api.DefaultApi(api_client)

    try:
        api_response = api_instance.pc_v4_app_jobs_get(size=10, page=1)
        pprint(api_response)
    except jobsuche.ApiException as e:
        print("Exception when calling DefaultApi->pc_v4_app_jobs_get: %s\n" % e)

StoyanStAtanasov avatar Feb 13 '25 17:02 StoyanStAtanasov

Hi, thanks for flagging this.

You could try to regenerate the client with a newer version of the openapi generator.

Would be very interesting to see if the updated generator does a better job here.

wirthual avatar Feb 20 '25 03:02 wirthual

I solved my issue by directly issuing HTTP requests, but now I cannot get more than 10000 items (page size x num pages cannot exceed 10k?!?), I get an error from the API.

You could try to regenerate the client with a newer version of the openapi generator.

Would be very interesting to see if the updated generator does a better job here. Who is maintaining this? Aren't they responsible to update and test the package?

The jobsearch API is all wrong, it's created as a webapp backend, does not fit to data analytics/statistics usage as it is limited and very ineffective in data transfer. e-vergabe have a good API in this regard. Who should I talk about this?

StoyanStAtanasov avatar Feb 20 '25 14:02 StoyanStAtanasov