Scrape specific text from a website, and fill it into a cell?

BrandonBerner

New Member
Joined
Mar 16, 2019
Messages
15
Hey there!

So im trying to watch for a price drop on a specific phone on a specific website. I want to continue to scrape this page every 30 minutes, and paste the price into a excel sheet or google sheet.

Here is the page: https://www.telus.com/en/bc/mobility/phones/iphone-xs-max?INTCMP=VAN_phones
  • Im looking to scrape the Platinum tiered pricing.

I already created a little macro program (not using nerd-code), to automatically go to the link, move the mouse to scroll down to platinum pricing, copy the price, open excel, paste it, and repeat on a 30 min timer. I even added a little bonus so it will send me a text reminder once a change is made in my sheet. All thats left is for the cells to auto-fill after scraping the website. But....I CANT USE MY COMPUTER WHILE ITS WORKING LOL.

Please keep in mind, im still a beginner with random bits of excel knowledge :)
 

Excel Facts

Format cells as currency
Select range and press Ctrl+Shift+4 to format cells as currency. (Shift 4 is the $ sign).
You could try launching the macro every 30 minutes using Task scheduler. it will still irritate - but only every 30 minutes.



1. A Workbook Open event which calls your macro when the containing workbook is opened.
- This is copied into the ThisWorkbook of the Project

Code:
Private Sub Workbook_Open()

Run "MyMacro"

End Sub

2. A BAT File to launch the Workbook.
- content example : start excel "C:\USER\Fred Bloggs\Documents\My_dodgy_Macros.xlsm"

3. Task Scheduler set up to run the BAT file every 30 minutes
- you'll have to work through this one yourself.

4. The workbook needs to be in a 'Trusted Location' so that you won't get the macro enable dialog.
- File->Options->Trust Center->Trust Center Settings->Add New Location

5. Add code to close the workbook at the end of your macro
 
Upvote 0
To set up scheduler Win7 example:

Start/Programs/Accessories/System Tools/Task Scheduler

Create a Task
General Tab - give it a name. Can set to run with highest privileges but shouldn't be necessary.

Triggers Tab -> New
- On a Schedule
- Daily, recur every: 1 days
- Repeat task every 30 minutes, for duration of: indefinitely

Actions Tab - >New
- Start a Program
- Browse to BAT file location

That should do it.
If you set it for every 5 minutes just to see if it works then edit it when you are satisfied.
 
Last edited:
Upvote 0

Forum statistics

Threads
1,224,847
Messages
6,181,311
Members
453,031
Latest member
Chris_1

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top