How do I get items in Team Fortress 2?

Solution 1:

The item drop system gives you a random item after a certain amount of time.

Players are guaranteed to find items at regular intervals of 30 to 70 minutes, with an average interval of 50 minutes.

There is no cap on the amount of items that can be received per week, but instead a cap on the amount of playtime in which drops can occur

Each class also has items that are awarded based on completing achievements with that class in addition to being randomly found.

Solution 2:

items drop in randomly, but earning achievements help you collect items. pick items wisely. for example, if you want to headshot people, choose the sniper rifle over the huntsman(bow and arrow) because of the aim of sniper.The huntsman would be better for attack.