Get data from behind a log-in

In this tutorial I will show you how to get data behind any log-in screen.

To begin:

1. Click "New Project" to get started

2. Enter - https://www.quora.com/ - in the URL field.

2. Click "Start project on this URL".

Select the email field and enter your email:

1. Click on the "Select page" command + button that is located on the right of the command.

2. From the tool box choose the "Select" tool.

3. Click on the email field to select it.

4. Automatically the "Input" command will appear for you. ParseHub recognizes when you are selecting a text box and will create this command for you.

5. Type in your email.

6. If you want to change the name of the "selection1" command just click on the text and start typing something new like "email". This will help you remember what your selection was.

Select the password field and enter your password:

1. Click on the "Select page" command + button that is located on the right of the command.

2. From the tool box choose the "Select" tool.

3. Click on the password field to select it.

4. Automatically the "Input" command will appear for you. ParseHub recognizes when you are selecting a text box and will create this command for you.

5. Type in your password. Note, that the password will be visible on the app to you or anyone else that is able to view your account. (All projects are public on the free plan).

6. If you want to change the name of the "selection1" command just click on the text and start typing "password". 

Select the login button and navigate to the page after logging in:

1. Click on the "Select page" command + button that is located on the right of the command.

2. From the tool box choose the "Select" tool.

3. Click on the log-in button.

4. Click on the + button on the "Select & Extract selection3" command. This will let you make a command right under and inside the "Select & Extract selection3". You can also rename this command by clicking on the text and typing in "button".

5. Choose the "Click" tool from the tool box. The navigate command lets you go to another page or click through any link that opens a new page. 

6. You also have to tell ParseHub which template to use on the new page that opens up when the command is executed. In this case, because a new page that will look completely different than the log-in page will open up, you have to create a new template.

7. In the "template name" text box type in a name such as "post_login" and click "Create New Template". A new page will open up for you, and ParseHub will log you into the website you are trying to access.

Extra Help

What is a template?

A template is a set of instructions that you set up to be executed on one of more webpages. In this example, we used two templates. The first template was used for the Quora login screen and the second template was created for the top stories listing.

How do I create a new template?

Use the Click tool, type in the name of a new template and click “Create New Template”. The first template called “main_template” is created for you at the start of each project.

How do I use the same template?

From the "Select Template" dropdown select the template that you want to use. All of your already created templates will be in this dropdown. You don't have to do anything else or click anywhere else.

How do I delete a template?

Click on the “Options” menu next to the template name and select “Delete Template”.

When do I use the "Go to Template"?

Use the Go to Template tool when you want ParseHub to go to another page (URL). You can use this tool to navigate to a new URL via a different template or the same template.

 

Please also see this video tutorial on getting data from behind a log-in with the Zoocasa website as an example.