Looking for a script that get images' urls from a website

Hi,
I have a website where users can insert theirs hotel informations.
Most of them do not insert photos, I guess because the procedure is quite long and difficoult for the average user's skills.
I'm looking for a script that take as input the url of the website and give as output the urls of the images of the site, so the user can decide which to upload on his tab.
Someone can help me?

La_Salamandra wrote:
I have a website where users can insert theirs hotel informations.
Most of them do not insert photos, I guess because the procedure is quite long and difficoult for the average user's skills.
I'm looking for a script that take as input the url of the website and give as output the urls of the images of the site, so the user can decide which to upload on his tab.
Someone can help me?
You have to improve your design. Even if you can find the Coldfusion code, your design will still fall short in 2 ways.
First, it is unreliable, because you're depending on some arbitrary site to be available and up to speed. Secondly, it is aesthetically wrong to be collecting pictures, especially large numbers of them, dynamically from someone else's site.  Think of their copyright and bandwidth.
Fortunately, there are simple solutions. First, identify, by eye, the web pages containing the pictures you're interested in. Ask for permission from the owner.
You could indeed use Coldfusion's cfhttp or any other script to download the JPGs, PNGs, and so on. But then, why waste your time re-inventing the wheel? It is infinitely better to use a web crawler !
With most crawlers, you only have to supply the URL of the site, and the file extensions it has to grab (in your case, jpg, png, bmp, and so on).
One click on the button, and you have them reeling in. Automatically. Some crawlers are considerate enough to enable you to adjust the download bandwidth. (We can learn from a million years evolution wisdom. The vampire bat is known to inject a painkiller before sucking!).
Now that you've downloaded the images to your site, the links you display to your users are all yours. You may choose to resize some of the images, display them as you wish, and the issues of reliability and bandwidth are now up to you.

Similar Messages

  • Automator Stops Responding while trying to perform "Get Image URLs from Webpage"

    I have seen it in many tutorials, and it seems strait forward enough, so here is my order of events for my scriptl;
    Get Current Webpage from Safari
    Get Image URLs from Webpage [linked from these webpages]
    Download URLs [Downloads]
    However when I run this script it returns the get current webpage quickly but then hangs on Get Image URLs from webpage either never passes or takes 700+ seconds to move to the next step.
    The times it did pass to the next step it worked 98% still missed images occasionaly.
    After I figure out how to fix this issue, I am looking for a way to make it create a new folder, and name it according to the sub directory of the webpage, for example:
    http:\\www.mypictures.com\Birthday\01.JPG
    http:\\www.mypictures.com\Birthday\02.JPG
    would create folder Birthday, and save images 1 and 2
    Then in the future I want to download another set such as;
    http:\\www.mypictures.com\MothersDay\01.JPG
    http:\\www.mypictures.com\MothersDay\02.JPG
    As these are both named 01.JPG the sets would overwrite, or add strange numbers and not divide by set by default;
    So I need this script to create folders based on Directory (portion of url)  In my example it would be MothersDay, and Birthday folders.
    Any help would be greatly appreciated!
    Thanks in advance!
                    Mike

    I should add, it has simply frozen and stopped responding about 95% of the 20 times or so I have run it. I have tried rebooting (not sure if that helps on Mac, I'm still new to the OS been a windows user for a long time but so far I love my Mac).

  • I'm looking for a script that preloads a Splash Screen on Android

    I've read all threads here already about this subject. For most AdobeAir projects for Android, no matter what size, it could take up to 20 sec to load the app, and while it loads, all you see is a black screen. As there's no support for a Default.png like there is for iPhone, we have to use a preloader.
    I've only found one for Flex, which is no good to me as I'm using Flash Pro 5.5 (IDE). I've tried doing some simple preload-a-swf-preloader but it just loads it to 100% before showing anything anyway.
    Anyone here that can share a script of a simple preloader for Flash CS5.5?
    I know that to reduce the loading time and show a splash screen on android we need to make a very small swf that will contain the loading screen image, and that same swf will also preload the maingame.swf (but can that be done? Appstore don't like code in more than one swf) into it. My tries have failed.
    Here's some quotes in case someone who reads this might be knowledgable enough to help me out:
    Yes its possible to get a splash to appear straight away (well within one to 2 seconds which is close enough) but
    (a) You have to create a small splash .SWF which loads your main .SWF (OK so that's fairly obvious but a "Default.PNG" splash screen facility as per the iPhone packager and FLEX projects is what you might expect)
    (b) Your splash .SWF must embed the splash image. If you try to dynamically load an image nothing will appear until the whole of the APK file is loaded ( and presumably initialised). That was what I was doing wrong.
    It takes 20 sec to load, it's all black before it's done loading and the runtime takes up 25mb!
    (1) Yes that is a bit of a problem but seems to be the cost of compiling in the AIR runtime.  I am sure that most mobile projects only use a subset of the entire AIR library - its a shame you can't just compile in the bits that you need and drop the rest.
    (2) This is partly because of (1) and the fact it takes so long to get a big file up and running with AIR.  You need to create a preloader that is very small and all it does is display a splashscreen and then loads in the main 25mb file that you embed in the assets of your preloader.  The small preloader appears quickly and then gives you time to do your 'work' loading the main app with something onscreen.  This gives an example / explanation and there are others out there :
    http://www.mcbrearty.me.uk/index.php/2011/05/09/actionscript-mobile-pr oject-splash-screen/

    Hi Nick,
    Using the FileSystemObject object to delete a folder will delete the profile directory, but it won't delete its associated registry path:
    HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList\user's SID
    There are also two other complications: 1. you can't delete a profile for a user that's logged on; and 2. the user might have logged off, but the profile might not be completely unloaded (see
    http://support.microsoft.com/kb/837115 ).
    In the meantime, I recommend 'uphclean' and the 'delprof.exe' found in the Resource Kit utilities.
    HTH,
    Bill
    Can we combine FileSystemObject and deleting Reg Keys?
    ¯\_(ツ)_/¯

  • Looking for a script that will find broken links

    I create long documents in InDesign, and I often have 50-75 Indesign documents in my InDesign book. Because what I do is production publishing, at any one time I'll have a half dozen similar books under construction. All the books contain the same chapters (as far as file name an basic content). I need a script that I can run on the final PDF for each project to make sure that all of my hyperlinks/cross references are intact. This is to ensure that I didn't accidentally link to a chapter from a different project. In other words, I need to make sure that my final PDF contains both the source and the destination.
    Does anyone know where I can find a script like this?
    Thanks,
    Kelly Vaughn

    A script can't do that. Maybe a plugin.

  • Looking for a script that will save as v11

    I need to save a book and all its files as version 11 (from version 12)

    Hi Dave,
    I have a script that saves to any FM version above 7 (and including MIF format, too). The script optionally copies all images to a local folder and optionally also includes text insets in the save. I know I sent you another script a couple of weeks ago, but I did not keep your email address. If you send the adress to me again I will forward a binary version of the script (the script source is something I am thinking of selling at a later stage and there was a lot of work on it, so I am a little less generous on that).
    Not sure if I have the latest version of the script on my laptop (I am on a business trip this week) but I can send you the script by Saturday at the latest.
    Kind regards from Copenhagen
    Jang

  • Looking for a script that creates labels for linked image files in the layout

    I'm working on a large book with over 650 images and I need to show the file names along with the images in layout for proofing reasons. Does anyone have a script for that does something like this? I'm working in INDD 6.
    Appreciate your help / suggestions!

    This is great— thank you! however you have to select all the image in order to generate the live caption. My file is about 320+ pages, any way to run live caption without having to select the files?

  • Looking for a script that will size photos down and give unique filenames

    Here's the challenge:
    I have a bunch of photos that need to be sized down to three different types of thumbnails, each group of thumbnails needs to have a specific prefix to the filename while keeping the rest of filename in tact.
    So example:
    I start out with a photo 1400 x 933
    That photo needs to be sized down to 3 different smaller sizes: 630 x 420, 210 x 140 and 140 x93 (all of those have the same aspect ratio as 1400 x 933). So far this is a simple Action in Photoshop.
    The trick I can't figure out is that these photos need to have a specific file naming convention. Say for example the 1400 x 933 photo we start out with is named w_paul_001.jpg the other photos once sized down need to be: x_paul_001.jpg (for the 630x420), y_paul_001.jpg (for the 210 x 140) and z_paul_001.jpg (for the 140x93).
    How I do dat?

    This will do what you want:
    var srcDoc = app.activeDocument;
    var imgNum = srcDoc.name.substring(7, (srcDoc.name.length)-4);
    var myJpgQuality = 12
    var sizeArray = [
    [1400, 933, "x_paul_"],
    [630,  420, "y_paul_"],
    [100,  100, "z_paul_"]
    for (var i=0; i<sizeArray.length; i++)
      var shrinkWidth =  sizeArray [i][0];
      var shrinkHeight = sizeArray [i][1];
      var mySaveName = sizeArray [i][2];
      var id428 = charIDToTypeID( "Dplc" );
      var desc92 = new ActionDescriptor();
      var id429 = charIDToTypeID( "null" );
      var ref27 = new ActionReference();
      var id430 = charIDToTypeID( "Dcmn" );
      var id431 = charIDToTypeID( "Ordn" );
      var id432 = charIDToTypeID( "Frst" );
      ref27.putEnumerated( id430, id431, id432 );
      desc92.putReference( id429, ref27 );
      var id433 = charIDToTypeID( "Nm  " );
      desc92.putString( id433, mySaveName );
      executeAction( id428, desc92, DialogModes.NO );
      activeDocument.resizeImage(shrinkWidth, shrinkHeight, 72, ResampleMethod.BICUBIC);
      filePath = srcDoc.path + '/' + mySaveName + imgNum + '.jpg';
      var jpgFile = new File(filePath);
      jpgSaveOptions = new JPEGSaveOptions();
      jpgSaveOptions.formatOptions = FormatOptions.OPTIMIZEDBASELINE;
      jpgSaveOptions.embedColorProfile = true;
      jpgSaveOptions.matte = MatteType.NONE;
      jpgSaveOptions.quality = myJpgQuality;
      activeDocument.saveAs(jpgFile, jpgSaveOptions, true, Extension.LOWERCASE);
      app.activeDocument.close(SaveOptions.DONOTSAVECHANGES);

  • Looking for a bapi that gets the list of customers with a credit limit

    Hello SAP gurus
    I want to know if there is a standard bapi that I can use to find all customers with a credit limit of $10000 and that have exceeded this limit.
    Any response/feedback will be highly appreciated.
    Tks
    Ram

    Thanks J@Y,
    I had read that discussion about the tables with the info. However, I have an external program that is integrated to SAP sytem (using webservices). The external program when needed has to retrieve the list of customers who have exceeded certain credit limit. So I was wondering if there is any standard BAPI which I can use. Or do I need to write my own BAPI using the tables info that you have indicated.
    Tks
    Ram

  • Looking for a cable that does audio out from the dock connection

    I would like to use the iphone with the aux in on my car stereo. I have my iphone in a proclip cradle that is mounted to the dash. I would like a cable that plugs in to the dock connection on the bottom of the iphone and goes into the aux in on the front of my car stereo. I really don't want to use the headphone jack on the top since I have to use the adapter, and after you plug that in to the iphone, and then the cable into that, it sticks up like a mile in the air. Does anyone know of any cables that will work for me??

    I have an old 512 MB iPod Shuffle that I gave my 8-yr old son and as well as an iPod Nano that I recently purchased for my daughter. I tried to use my car AUX (Honda Jazz) to play from my iPhone and looks like it does not work for my iPhone (yes, I made it to work in Vodafone network in New Zealand). Then I tried with the old iPod shuffle and it works fine as well. Lastly I tried with iPod Nano and looks like it works with iPod Nano as well. Later I tried with a Samsung headphone to see if it did work with my iPhone (instead of iPhone headphone), it worked well. I am not sure what to do now. I might call Apple to see if they have anything that'll work for iPhone.
    Cheers,
    S

  • Looking for mileage logger app that gets its addresses from contacts

    I'm looking for mileage logger that gets addresses from the iPhone's contacts. I used to have the perfect app, called Tap2Go but it no longer works and isn't supported. I don't need a bunch of other bells &amp; whistles. I just want a logger that will give me the option to look up the address in my contact book.  I hate to have to leave the app, open Contacts, find the contact, select &amp; copy the address &amp; go back to the app and paste in the address. Also, need the app to calculate the distance based on the addresses entered.
    Somebody must make an app that does this but I downloaded a bunch of loggers &amp; trackers and none offered this feature.

    Finally found what I was looking for after wasting $$$ on apps that promised features that they didn’t deliver.
    MileTracker from Silverware does everything I was looking for http://www.silverwaresoftware.com/Home.html
    I can’t believe how hard it was to find an app that would do what I needed but the folks at Silverware seem to have carefully thought through what is needed and they give you lots of options and fields that can be toggled on and off. It cost 2.99 and then another .99 to turn on the GPS based calculation.
    Well worth it.

  • Looking for a script to automate renaming layer objects, not the layer itself!

    Hey there everyone,
    I was wondering if there is a possibility to create/have a script for an automated renaming of several named layer objects in Indesign (CS6).
    The situation, I'm facing is a document for a templating process with at least 80 layers and sometimes some special elements on each layer. The naming of the layers is kind of repeating for each page that is used. The only difference is some prefix change in the layer name and/or the name of an element itself. My problem is, that I need to rename most of those layers AND elements in a same way and I'm looking for a script that asks me for the name of a layer or element (perfect would be just a part of the name to have multiple steps at once) and I have the chance to type in the desired value. It affects frames, graphical elements and text boxes.
    If anyone has an idea, how to simplify this process I would be very glad to get some informations or advices.
    Thanks in advance
    Ralf

    Here is a more descriptive version of the script above... :)
    # Change "PSDrive" to PS1: (Sitecode)
    CD PS1:
    # Get all CMPackages to $CMPackages_All Variable
    $CMPackages_All = Get-CMPackage
    # Set the DP to use with. You may need to run it again with other DP just in case some Packages are missing...
    $DPName_FQDN = "YourDP.Contoso.com" # Your FQDN DP name to reference from.
    # Set folder to store *.pkgx files
    $FilePath = "E:\_ESD\Prestage\" # FilePath
    # For all CMPackages
    foreach ($obj in $CMPackages_All) {
        $packageType = $obj.PackageType
        $packageID = $obj.PackageID
        $packageVendor = $obj.Manufacturer
        $packageName = $obj.Name
        $packageVersion = $obj.Version
        # Formulate File name based on Vendor Name, version and PackageID
     $FileName = $FilePath + $packageVendor + "_" + $PackageName + "_" + $packageVersion + "_" + $packageID + ".pkgx"
        # Replace space with underscore
        $FileName = $FileName.Replace(" ","_")
        if ($PackageType -eq 0) {
            if (!( Test-Path $FileName)) { # This makes the package to skip if it is already created.
                Write-host "Publishing CMPrestage Content for $PackageID $PackageName to $FileName via $DPName_FQDN ..."
                Publish-CMPrestageContent -PackageID $packageID -DistributionPointName $DPName_FQDN -fileName $FileName -ErrorAction Continue
    YPae

  • Looking for iTunes Script

    I'm looking for a script that would remove ALL the album art from my songs. I've got so many mismatched album covers/art that it would be easier to start over from scratch than to go through all my songs one by one.
    Thanks in advance,
    Chris

    You really don't need a script.
    Select all songs (Command-A) and Get Info (command-I).
    Tick the checkbox at 'Artwork' and click OK.
    All embedded artwork will be removed.
    To remove all downloaded artwork (from the iTunes Store), select all songs again, control-click on the selection and choose 'Clear Downloaded Artwork'.
    Hope this helps.
    M

  • Script that shows new mails from Google Apps account in conky

    Hello guys,
    I'm looking for a script that outputs the number of new mails I received from my Mail Account with Google Apps.
    I've already found a script that works pretty well with the normal Gmail but not obviously not with Google Apps.
    import os
    import string
    #Enter your username and password below within double quotes
    # eg. username="username" and password="password"
    username="username"
    password="********"
    com="wget -O - https://"+username+":"+password+"@mail.google.com/mail/feed/atom --no-check-certificate"
    temp=os.popen(com)
    msg=temp.read()
    index=string.find(msg,"<fullcount>")
    index2=string.find(msg,"</fullcount>")
    fc=int(msg[index+11:index2])
    if fc==0:
    print "0 new"
    else:
    print str(fc)+" new"
    My idea was to replace mail.google.com/mail/feed/atom with mail.google.com/a/domain.tld/feed/atom but I always get connection errors like this.
    Connection to mail.google.com|209.85.135.16|:443... connected.
    HTTP request sent, wait for answer... 401 Unauthorized
    Connection to mail.google.com|209.85.135.16|:443... connected.
    HTTP request sent, wait for answer... 401 Unauthorized
    Authorisation failed.
    Traceback (most recent call last):
    File "/home/orschiro/.scripts/mail.py", line 15, in <module>
    fc=int(msg[index+11:index2])
    ValueError: invalid literal for int() with base 10: ''
    Any suggestion what I could try?
    Thank you in advance.
    Last edited by orschiro (2009-06-19 17:55:07)

    Here is part of a script that I am using with my Google Apps domain. Should be easy to follow. Just edit the three variables at the top of the script. I prompt for the password at boot so it is not hard coded in the script. I use x11-ssh-askpass for this.
    MAIL_URL = ['https://', 'mail.google.com', '/a/domain.com/feed/atom']
    USERNAME = "[email protected]"
    PASSWD = "password"
    def initMail():
    passman = urllib2.HTTPPasswordMgrWithDefaultRealm()
    passman.add_password(None, MAIL_URL[1], USERNAME, PASSWD)
    authhandler = urllib2.HTTPBasicAuthHandler(passman)
    opener = urllib2.build_opener(authhandler)
    urllib2.install_opener(opener)
    def checkMail():
    logging.debug("checkMail()")
    try:
    f = urllib2.urlopen("".join(MAIL_URL))
    doc = xml.dom.minidom.parseString(f.read())
    c = doc.getElementsByTagName("fullcount")[0].firstChild.data
    return dzenH1("Mail: ") + c
    except urllib2.URLError as e:
    return dzenH1("Mail: ") + "URLError"

  • I blog on TypePad using Word 2007 and documents freeze when I'm looking at them in Windows explorer; why do I get the error message that Mozilla is looking for a script?

    I have now had two error messages - the first one looked for this script: Script: resource://gre/modules/XPCOMUtils.jsm:258. The second one (today) looked for Script: resource://gre/components/nsPrompter.js:68.
    I have reset my word template, also reset word registry for data and options (as per Microsoft's help pages) for both those 'fixes' there was an initial improvement, but the problem happened again after I reposted on my blog today and then went to Windows explorer to view my files. It seems to 'seize' as I select a file, so that the preview does not appear (for up to 15-20mins).
    I see on the internet using the second script as a search just now that one other has had a similar problem and one also since Mozilla 4 upgrade. My problems have also been pretty much since I upgraded.
    It happens (apart from my fixes) every time I go to look at a word document via Windows explorer. Excel files are less affected.
    One web suggestion is to clear the cache, but I am hesitant to lose all my passwords unless I have to.

    I still have the problem although I uninstalled Mozilla (clearing the cache didn't work and neither did Word diagnostics), so have ended up thinking it could be Norton (the manual update worked x1) or Windows. Today I found an answer: disable the preview pane in Windows Explorer - there's a history of problems with this view.

  • Install gets stuck looking for /global/scripts/ac_media.js

    My dad is older and has moved into a retirement home.  He gave us his iMac G4.  We have all of the original install discs (including the Mac OS X 10.2 operating system).  My first problem is that he can't remember his password (even when we share his "hint" with him).  Through a general Google search and on the Apple support site, I have read that I can restart the computer with the OS disc in it, holding the C key down and it will reinstall the OS and I can create a new password.  My problem is when the install starts running, it seems to open the IE and the status bar indicates that the G4 is accessing the Apple site to search for files.  The process gets stuck when looking for /global/scripts/ac_media.js.  I downloaded that file from Apple onto a thumb drive, but didn't know where to copy it into my G4.  Can anyone help me?
    Thanks,
    Julie

    My dad is older and has moved into a retirement home.  He gave us his iMac G4.  We have all of the original install discs (including the Mac OS X 10.2 operating system).  My first problem is that he can't remember his password (even when we share his "hint" with him).  Through a general Google search and on the Apple support site, I have read that I can restart the computer with the OS disc in it, holding the C key down and it will reinstall the OS and I can create a new password.  My problem is when the install starts running, it seems to open the IE and the status bar indicates that the G4 is accessing the Apple site to search for files.  The process gets stuck when looking for /global/scripts/ac_media.js.  I downloaded that file from Apple onto a thumb drive, but didn't know where to copy it into my G4.  Can anyone help me?
    Thanks,
    Julie

Maybe you are looking for

  • Adobe Creative Cloud not working

    the adobe creative cloud home screen is all black and i cannot visualise anything. How can i resolve this?

  • Urgent help needed in achieving below ADF 11g flow

    Hi, I am using JDEV 11.1.1.2.0 with ADF 11g. I have a below requirement. Say in below eg. I am getting col1, col2, col3 from a single tbl in screen 1. On clicking col1's row I should go to screen 2 Screen1 Col1     Col2     Col3 Nm1     Code1     10

  • Error while uploading the logo using se78

    Hi All, I am using se78 tansaction to upload the company logo.i save the file as .bmp on desktop.while importing the file its giving me an error that file format is not valid.Please tell me which format should i use to upload the logo. Regards lalit

  • MY imac G5 isight camera drops my video conversations

    When ever I initiate a video chat with anyone I could never chat with them. A message appears that says, that I did not respond. But when the other party initiates a video chat, they can see me for like a few seconds and then the chat ends abruptly.

  • Oracle Forms  MySql DB

    Can I use Oracle Forms located on my home PC and develope a web application on a web server that has a MYSQL DB. No Oracle product is on the web server. If this is possibel Which Oracle Forms version can I use? Thanks