Logical fallacy

Nut-picking

Selects unusually extreme people or statements from an opposing group and uses them as evidence of what the group as a whole believes. The selection method favors outliers.

Two wrinkled walnuts selected from a tray of smooth ones

Examples

I looked for the most outrageous comments from hikers and found two who want to close every road. That is what hikers stand for.
The search was designed to find extremes, so it cannot describe the wider group.
Here are the strangest suggestions from a thousand customer replies. They tell you all you need to know about what customers want.
The most conspicuous replies give poor evidence of typical preferences.

A similar case that can be sound

These statements show that an extreme view exists. A representative survey would be needed to tell how widely it is held.