GiraffeValue

Web Scraping: From Excel to Web back to Excel

6 posts in this topic

Hi Everyone, I'm a total newbie.

Can anyone guides me to the right tutorial. what I need to do is as follow:

1. Copy a URL from excel

2. Go to the web with that URL.

3. Highlight the data and copy it.

4. Paste to Excel.

It sounds easy, but would be hard for starter to write a script for that?

I'm now watching some of the beginner videos on YouTube. Please let me know what should I foucs on.

Many thanks!

Share this post


Link to post
Share on other sites



Welcome to AutoIt and the forum!

All Excel related stuff can be found in the Excel UDF that comes with AutoIt.

All web related stuff depends on the browser you use. AutoIt comes with an UDF for Internet Explorer. For FF and Chrome you'll find UDFs on the forum.


My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2017-02-03 - Version 1.4.7.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (NEW 2017-02-03 - Version 1.2.4.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2015-04-01 - Version 0.4.0.0) - Download - General Help & Support - Example Scripts
Excel - Example Scripts - Wiki
Word - Wiki
Tutorials:
ADO - Wiki

 

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

I think Waters Excel UDF and the Autoit IE UDF will be your best friends for this.  Depending on what you want to do you can even have it run in the background silently and parse the source code of the page rather than highlight/copy/paste.

Its not exactly easy, but not exactly hard.  If you get a starting point you can get help here on the forum.

Im still not very good with the word/excel udfs but Water is the expert and always helped when I needed it. 

Edited by ViciousXUSMC

Share this post


Link to post
Share on other sites

Thanks for the kind words :)
I will do my very best!


My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2017-02-03 - Version 1.4.7.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (NEW 2017-02-03 - Version 1.2.4.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2015-04-01 - Version 0.4.0.0) - Download - General Help & Support - Example Scripts
Excel - Example Scripts - Wiki
Word - Wiki
Tutorials:
ADO - Wiki

 

Share this post


Link to post
Share on other sites

Hey ViciousXUSMC and Water

Thanks for the reply, I don't think I'm able to get the data through its source code, it seems that it shows under java script or something.

I have attached the link and pic for your reference:

http://www.sgx.com/wps/portal/sgxweb/home/company_disclosure/stockfacts?page=1&code=ADQU

Previous Open Price0.65Previous Day High/Low0.655-0.645
Previous Day Volume0.15 mmPrevious Close0.645
Previous Close Date22/Sep/201552 Week High/Low0.925-0.595
5-Year Beta-Shares Outstanding1,099.12 mm
Average 3-month Volume1.78 mmNormalized Diluted EPS0.04
Total Market CapS$ 708.9 mmFloat65.48%
6-month VWAP info.jpgSGD 0.707 as of22/Sep/2015 

 

So my question is what function should I use for getting the Numbers copied?

Share this post


Link to post
Share on other sites

I just had a quick look at it. Wouldn't it be easier to use one of their data services to access what you need?


My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2017-02-03 - Version 1.4.7.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (NEW 2017-02-03 - Version 1.2.4.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2015-04-01 - Version 0.4.0.0) - Download - General Help & Support - Example Scripts
Excel - Example Scripts - Wiki
Word - Wiki
Tutorials:
ADO - Wiki

 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now