Skip to main content

Posts

Showing posts with the label web

AWS IAM user

 how to give IAM user full access in AWS console. follow below steps:   Login to console.aws.amazon.com using root user.   Search IAM on the search bar on the top as shown in figure 1.   Click on users in the left menu under access management as shown in figure 2. Steps to configure a user are shown in figure 0. Click on create user as shown in figure 3 after following figure 2 step. After following figure 3, follow figure 4 steps. Define the username, provide access to console, and select we want to create a IAM user. For the password we are using an auto generated password and enforcing that user must create a new password after first login as shown in figure 5. Set permissions as IAM full access as shown in figure 6.

Download Insta Profile pictures using python method 1

""" Spyder Editor This is a temporary script file. """ import requests from bs4 import BeautifulSoup username = "usernamea" #enter above user name of the person you want to download the instagram profile picture URL="https://www.instagram.com/{}/" rq = requests.get(URL.format(username)) ss =BeautifulSoup(rq.text,"html.parser") w=ss.find("meta",property="og:image") url= w.attrs['content'] with open(username +' .jpg', "wb") as pic:   binary= requests.get(url).content   pic.write(binary) #instagram #profile #download #picture #method 1 check the variable url output & copy that url & paste in browser to open the picture