I hereby claim:
- I am fakedon on github.
- I am fakedon (https://keybase.io/fakedon) on keybase.
- I have a public key ASCw6wzXCht_FtMeTUCEzrSDxjcfejqvB1P4aCtBabiHcQo
To claim this, I am signing this object:
| def extract_form_fields(self, soup): | |
| "Turn a BeautifulSoup form in to a dict of fields and default values" | |
| fields = {} | |
| for input in soup.findAll('input'): | |
| # ignore submit/image with no name attribute | |
| if input['type'] in ('submit', 'image') and not input.has_key('name'): | |
| continue | |
| # single element nome/value fields | |
| if input['type'] in ('text', 'hidden', 'password', 'submit', 'image'): |
| { | |
| "kind": "discovery#restDescription", | |
| "discoveryVersion": "v1", | |
| "id": "drive:v2internal", | |
| "name": "drive", | |
| "version": "v2internal", | |
| "revision": "20180702", | |
| "title": "Drive API", | |
| "description": "Manages files in Drive including uploading, downloading, searching, detecting changes, and updating sharing permissions.", | |
| "ownerDomain": "google.com", |
| { | |
| "name": "Drive Mime Types", | |
| "types": [ | |
| {".323": "text/h323"}, | |
| {".3g2": "video/3gpp2"}, | |
| {".3gp": "video/3gpp"}, | |
| {".3gp2": "video/3gpp2"}, | |
| {".3gpp": "video/3gpp"}, | |
| {".7z": "application/x-7z-compressed"}, | |
| {".aa": "audio/audible"}, |
I hereby claim:
To claim this, I am signing this object: