augustin-wien / PDF-Parser

This plugin is used in a wordpress backend to extract text from pdf files and convert it into blogs.
1 stars 0 forks source link

Add a parser for Gustl #31

Closed nanu-c closed 8 months ago

nanu-c commented 8 months ago

Type of change

Description

IMPORTANT TO KNOW

CHANGES

Builds on upon the fix for inverted images and creates a separate article for gustl. TODO

Checklist:

lebe1 commented 8 months ago

Right now I receive an error which is thrown in these two lines

 File "/home/funny/Documents/Projects/Augustin-Parser/augustin-plugin/main.py", line 60, in upload
    papers_category_id = check_for_papers_category(version_number)
                         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/funny/Documents/Projects/Augustin-Parser/augustin-plugin/utils/requests.py", line 153, in check_for_papers_category
    category_list = json.loads(response.content)
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^

saying json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0) , which I assume is the missing bracket since I printed out the response.content as shown in the recent commit, which starts with <!DOCTYPE...

Behaviour happened due to missing WP setup after a docker compose down -v