Is it possible to web-scrape image URLs using excel macros? To be clear, I want to scrape image-URLs and not the images.
If so, how?
I usually use the macros recorder to record functions that I don't remember, but the recorder doesn't pick up actions in my browser. So this suggests to me that it is not possible.
If not, what other tools have the function to data-scrape image urls?
Right now, to manually get image urls I have to go on the website, right-click on the image, and copy the image-url, and paste it into excel. There are over a 1000 images that I have to do this for. I have a long list of hyperlinks in excel.
Q: Is it possible to data-scrape image URLs using excel macros?
A: Yes.
Q: If so, how?
A: You learn VBA syntax first. Then learn about SHDocVw.InternetExplorer or MSXML2.XMLHTTP, both can help you to determine the rul of the desired image. Finally Download pictures from url and save in a folder named by a cell is an example to download image from url.
Related
I have Scanned Image, I converted it to pdf file, the content of image are rows and columns (table), I want Extract the text from table to excel file, any Idea? any good website or tool or program can I use it
I tried to use a lot of websites to extract text, but it does not work
Do you have Microsoft Excel? If you do, then first convert the PDF to a JPEG.
And with that, go to Microsoft Excel
Create a New Document
Go to the Data Tab
Choose "Data From Picture"
Choose Picture From File
You'll see a couple of instructions. Follow them to complete the process of converting the picture to table.
You'll also have the option of correcting any inaccuracies before adding them to your spreadsheet.
That's all!
I have been trying to find a way to get hyperlinks added into the data pulled from a website. I have tried using //#href combining this into the formula, but have not had any success.
I have also tried pulling the URL from the website in a separate sheet to try and combine the 2 lots of data but again no success.
I'm sure there must be an easy solution to this but having minimal knowledge on excel has made it tricky!
The link to a copy of the spreadsheet is below, and the formula I am currently using to pull data into google sheets is below but has no URL attached to the information when pulled.
=transpose(IMPORTXML(B1,"//div[#id='page-box']/div[2]/ section/div"))
https://docs.google.com/spreadsheets/d/1hiQ5EeGEgQC7kPApCUyR3r_uZb31MVDzdiffqApDdGE/edit?usp=sharing
Hopefully someone can help with this solution. thanks in advance.
Try
=importxml(url,"//div[#class='alphabet__list-column']//a/#href")
edit:
use following xpath
//span[#class='alphabet__list-letter']|//div[#class='alphabet__list-column']//a/#href
to retrieve also the letter
I am trying to get a full picture to upload onto a worksheet from its url. I have created a form where there is a file upload and I would like for it to show the image rather than a url. Is there a way to do this using office scripts?
Thank you!
This sample shows how to add an image to a workbook from a URL: Add images to a workbook.
Essentially, you need to use fetch to get the image information, convert it to a base64-encoded string, then use Worksheet.addImage to create an Excel shape storing the image.
Since you're using a form, you could create a Power Automate flow that runs the script whenever a new response is recorded. That might be out of scope from your original question, but it's something to consider as a next step.
I want to read from an excel file and copy the relevant data into a web form in the browser. I also need to check some conditions before pasting the data in the page according to the data in my excel sheet. How can I achieve that? What tool I can use to achieve the desired result?
Using Javascript may be fine, but I am looking for some kind of windows automation tools as in autohotkey to do the job.
is there a workaround to use the cfdocument tag to save a page/file as an excel sheet instead of a PDF file?
I already have a process set up to make pdf files and email them out and would like to give my customers the option of getting an excel file instead. It would be nice if I could reuse the code I already have instead of having to rewrite it in POI or something like that.
The type of data witihn a PDF is not usually the same type of data that makes sense for Excel. That being said, there are multiple other ways to create Excel spreadhseets.
In ColdFusion 9, it's native. Just use the cfspreadsheet. In CF8... well, it looks like you have POI. So use that. ;) Ben Nadel also has a nice wrapper for POI so you can consider that too.
The thing is - you will not be able to go from CFDOCUMENT to a spreadsheet since it is really a different type of data.
In ColdFusion 9 use the cfspreadsheet tag and/or spreadsheet functions. That creates a real Excel file.
In ColdFusion 8 and below the easiest way is to use the html table > Excel hack/trick. Put your data in a standard html table, save them in a file with a .xls extension and email them to your users. When the user opens the file Excel will convert the html table to an Excel spreadsheet. You could also send the content to the browser by adding at the top of the page. With this method make sure that you are only sending an html table for best results.