Jan-19-2020, 09:37 PM
It's after he login with code as shown @Axel_Erfurt.
Send source to BS again.
Send source to BS again.
home_page = s.get("https://connectedinvestors.com/friends-list") #print(home_page.content) bs_after_login = bs(home_page.content, "html.parser")So than can parse like this.
>>> s = bs_after_login.find('a') >>> s <a href="/member/rudy-acosta" itemprop="url"> <figure class="circle profile bordered bordered-level-2"> <img alt="Rudy Acosta" itemprop="image" src="/uploads/user/15401/img_544bf971f23de.jpg"/> </figure></a> >>> >>> s.get('href') '/member/rudy-acosta' >>> >>> # img tag aslo have name >>> img_tag = s.find('img') >>> img_tag.attrs {'alt': 'Rudy Acosta', 'itemprop': 'image', 'src': '/uploads/user/15401/img_544bf971f23de.jpg'} >>> img_tag.attrs['alt'] 'Rudy Acosta'