For multiple sites or different paths on the same site, you can add more lines with different machine specifications.
⚠️
yt-dlp (and its predecessor youtube-dl ) utilizes this standard to retrieve credentials for various websites. yt-dlp --netrc
Some sites support more secure authentication methods. For instance, YouTube can be accessed via OAuth, which doesn't require hard-coding passwords into files. However, the support and method depend on the site and yt-dlp capabilities. For multiple sites or different paths on the