Javascript Get Url Hash Python Code