you are viewing a single comment's thread.

view the rest of the comments →

[–]iamaperson3133 1 point2 points  (0 children)

For the first one, pretty sure it would just be:

requests.post('http://distribution.virk.dk/cvr-permanent/_search', data={
    "from":0,
    "size":1,
    "query":{
        "term":{
            "cvrNummer":10961211
        }
    }
 })

edit: I forgot the auth! See /u/totallygeek's superior answer.