Hello I need to extract data from a websitel. I have access to a website. i have credentials to a website. I will need to extract this data in a pdf form. Let me know if you can do it . I will need to log into a website called http://www.mypix2.com/ Username: paigem Password: miamipaige50 Look at the attachment Log into the following website- http://www.mypix2.com/ Username: paigem Password: miamipaige50 Once logged in, you will be taken to the main screen, click on Store admin Then click on Sales then Orders; Then you will see a 5,500+ orders. Click on the edit button as seen below; Then you will get details on the order. I need the email addresses of each order and the order number. I need this for all 5500+ orders. There are going to be some that do not have email addresses. That will be okay. But I need it for the ones that do! Let me know if you have any questions

Extracting data from a website and specifically obtaining email addresses and order numbers for over 5500 orders can be accomplished using various methods such as web scraping or using APIs. Since you have credentials to log into the website http://www.mypix2.com/ and require the data in PDF form, I will provide a solution using web scraping techniques.

Web scraping is a process of automatically collecting data from a website by simulating human interactions with the website’s user interface. In this case, we will use Python programming language along with libraries such as BeautifulSoup and Requests to perform the web scraping.

First, make sure you have Python installed on your system. You can download and install the latest version of Python from the official website. Once installed, open a new Python script file and import the necessary libraries:

“`python
import requests
from bs4 import BeautifulSoup
“`

Next, we will create a function that logs into the website using the provided credentials, navigates to the desired page, and extracts the required data:

“`python
def extract_data():
# Provide the login URL, username, and password
url = “http://www.mypix2.com/login”
username = “paigem”
password = “miamipaige50”

# Create a session and perform login
session = requests.Session()
login_data = {“username”: username, “password”: password}
session.post(url, data=login_data)

# Navigate to the main screen and access the sales orders page
main_screen_url = “http://www.mypix2.com/main”
sales_orders_url = “http://www.mypix2.com/store_admin/sales/orders”
session.get(main_screen_url)
sales_orders_page = session.get(sales_orders_url)

# Parse the HTML content of the sales orders page using BeautifulSoup
soup = BeautifulSoup(sales_orders_page.content, “html.parser”)

# Find all the order edit links
order_edit_links = soup.find_all(“a”, text=”Edit”)

# Iterate through each order edit link and extract the email address and order number
for link in order_edit_links:
order_url = “http://www.mypix2.com” + link[“href”]
order_page = session.get(order_url)
order_soup = BeautifulSoup(order_page.content, “html.parser”)
email_address = order_soup.find(“div”, class_=”email”).text
order_number = order_soup.find(“div”, class_=”order_number”).text

# Print or save the extracted email address and order number
print(“Email: “, email_address)
print(“Order Number: “, order_number)
“`

You can run the `extract_data()` function to start the web scraping process. It will log into the website, access the sales orders page, iterate through each order, and extract the email address and order number. You can modify the function to save the extracted data in a PDF format as per your requirement.

Note that web scraping should be done responsibly and in compliance with the website’s terms of service. It is recommended to check the website’s terms of service or contact the website owner to ensure that web scraping is allowed.

Need your ASSIGNMENT done? Use our paper writing service to score better and meet your deadline.


Click Here to Make an Order Click Here to Hire a Writer