Grabbing titles from a folder?

7 replies
I've been talking with a client and he's got a lot of articles in a folder. What he'd like to do is be able to somehow grab all the titles (without having to manually cut/paste) and put them into a file so he can spin them. I'm no programmer, and thought I'd ask if anyone knew of a way to do this? Or a program that does?
#folder #grabbing #titles
  • Profile picture of the author Brandon Tanner
    Don't know of any program that does this specifically, but it would be a pretty trivial task to do this with automation software (ie WinAutomation). Or, I could whip up a simple desktop app that does this... depending on your exact requirements, it would probably only be about an hour of work. PM me if you're interested.
    Signature

    {{ DiscussionBoard.errors[6770038].message }}
  • Profile picture of the author Lovelogic
    If the files are on a PC then you could use a package called 'dJuggler' there's an unlimted use personal edition out there that will do this. Alternatively if the files are on a webserver then you could use a simple PHP script to fetch the names using the scandir command
    {{ DiscussionBoard.errors[6773118].message }}
    • Profile picture of the author Brandon Tanner
      Originally Posted by Lovelogic View Post

      If the files are on a PC then you could use a package called 'dJuggler' there's an unlimted use personal edition out there that will do this. Alternatively if the files are on a webserver then you could use a simple PHP script to fetch the names using the scandir command
      Never heard of djuggler before but it looks pretty cool! Thanks for the heads up.
      Signature

      {{ DiscussionBoard.errors[6773605].message }}
  • Profile picture of the author Andrew Mak
    i can write a bot with winautomation for this task, PM me with some sample articles.

    Andrew
    Signature

    {{ DiscussionBoard.errors[6866420].message }}
    • Profile picture of the author lite_ws
      you can also use the php function file_get_contents

      <?php
      function getTitleFile($File){
      $str = file_get_contents($File);
      if(strlen($str)>0){
      preg_match("/\<title\>(.*)\<\/title\>/",$str,$title);
      return $title[1];
      }
      }
      //Example:
      echo getTitleFile("file1.html");echo "<br />";
      echo getTitleFile("file2.html");

      ?>
      {{ DiscussionBoard.errors[6867281].message }}
  • Profile picture of the author andy789
    try this tool:
    hxxp://imcoupons.net/files/FileTitleGrabber.zip

    screenshot:
    hxxp://imcoupons.net/files/FileTitleGrabber.png

    >> replace hxxp with http
    Signature
    >> IM Coupons <<
    {{ DiscussionBoard.errors[6996854].message }}
  • Profile picture of the author dwoods
    lite_ws's solution should do the trick.
    If not please post a sample of one of the articles and l can tweak it to work for you.

    Regards,
    Signature
    Need a way to drive traffic to your new site?
    -- Check out HelpMyHits.com!
    {{ DiscussionBoard.errors[6997239].message }}

Trending Topics