Skip to content

Python

concatenate lines from a text file

with open('file.txt') as inputfile: print ' '.join([line.rstrip('\n') for line in inputfile])

Initial python file template

def main(): print("Hello World!")

if name == "main": main()

Generate a standalone executable from a python script

realpython article

Using requests with javascript

From this article

`from requests_html import HTMLSession

session = HTMLSession() r = session.get('http://www.example.com') r.html.render() `

Data Science

Excel and pandas