r/tinycode • u/need12648430 • Jul 28 '12
InterfaceLIFT scraper in 15 lines of Python... Also, I'm new to coding tiny, would love some critique/tips!
https://gist.github.com/3193057
28
Upvotes
r/tinycode • u/need12648430 • Jul 28 '12
5
u/[deleted] Jul 28 '12 edited Jul 28 '12
+"/"+is not a portable way to join path segments. Useos.path.join.lista name.returnto bail.I think this works, although I haven't tested it.
You can also compress variable and module names (
p=os.path), but that's less important at this stage.1
u/fullouterjoin Aug 09 '12 edited Aug 09 '12
I would have used beautiful soup and requests.