Since clash of clans has several systems in place to try to prevent farming, it requires manipulating some things in your favor. [substeps] Farming is based both on trophies and your town hall level.
[header] How to farm in clash of clans [title] Understand the basics of farming. [step] Farming is a term in which the player changes her or his attributes of attacking and defending so that s/he is mostly focused on resources, not trophies. It involves intentionally losing so that you drop down to lower levels, giving you the opportunity to attack weaker opponents.