Giter Club home page Giter Club logo

Comments (5)

TheWizardofGauze avatar TheWizardofGauze commented on July 17, 2024 1

Fair enough, figured I might as well bring it up just in case. Thanks.

from api.

xSentry avatar xSentry commented on July 17, 2024

This is not a bug.
The official Title that is comming from the ArrowHead API displays the exact same value.
Since we can just work with the values ArrowHead is providing, there isnt really a workaround for that, since the data is already comming "bugged" from the official endpoints.

Screenshot from the official return data:
grafik

from api.

dcl4k avatar dcl4k commented on July 17, 2024

Fair enough, figured I might as well bring it up just in case. Thanks.

I resolved this (in my code) with the following: (tweak as needed)

            url = f"https://helldivers-2-dotnet.fly.dev/api/v1/dispatches"
            response = requests.get(url)

            if response.status_code == 200:
                data = response.json()
                message = data[0]['message']
                formatted_message = message.replace("<i=3>", "").replace("</i>", "").strip()
                print(formatted_message)

from api.

dealloc avatar dealloc commented on July 17, 2024

I'm not opposed to the argument that in the v1 API (which is a convenience layer anyway) the texts from ArrowHead should be parsed in 'proper' HTML (so the <i=3> stuff should be things like <i> etc

@TheWizardofGauze if you'd like to turn this into a feature request feel free to open one for that

from api.

TheWizardofGauze avatar TheWizardofGauze commented on July 17, 2024

@dealloc sure I can open one when I'm off work unless someone beats me to it

from api.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.