MCPcopy Create free account
hub / github.com/ZiniuLu/Python-100-Days / main

Function main

Day66-75/code/example09.py:4–12  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2
3
4def main():
5 b = robobrowser.RoboBrowser(parser='lxml')
6 b.open('https://github.com/login')
7 f = b.get_form(action='/session')
8 f['login'].value = 'jackfrued@gmail.com'
9 f['password'].value = 'yourpassword'
10 b.submit_form(f)
11 for a_tag in b.select('a[href]'):
12 print(a_tag.attrs['href'])
13
14
15if __name__ == '__main__':

Callers 1

example09.pyFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected