How to scrape from the site that needs logging in?

You can scrape from such sites if it uses cookies for login. https://support.wpbots.net/documentation/using-cookies-scraping-from-password-protected-site/