Skip to content

Instantly share code, notes, and snippets.

View ysr23's full-sized avatar

ysr23 ysr23

  • Manchester, England
View GitHub Profile
@tfgrahame
tfgrahame / lxml-example.py
Created September 20, 2016 15:47
lxml example: read a resource, modify it, PUT it back
# coding: utf-8
import requests
import os
import datetime
from lxml import etree
url = 'https://api.int.bbc.co.uk/pips/api/v1/clip/pid.p0002b84/'
cert = os.environ.get('CERT')
headers = {'Accept': 'application/xml'}