And how is the URL of a Tweet generated?
E.g.: https://twitter.com/TechCrunch/status/365528663611027457

The numbers correspond to the ID of a Tweet. Twitter uses a system called Snowflake for generating these IDs - the technology is open sourced here: https://github.com/twitter/snowflake/