Grabbing titles from a folder?

by 7 replies
8
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?
#programming #folder #grabbing #titles
  • 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.
  • 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
    • [ 1 ] Thanks
    • [1] reply
    • Never heard of djuggler before but it looks pretty cool! Thanks for the heads up.
  • i can write a bot with winautomation for this task, PM me with some sample articles.

    Andrew
    • [1] reply
    • 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");

      ?>
  • try this tool:
    hxxp://imcoupons.net/files/FileTitleGrabber.zip

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

    >> replace hxxp with http
  • 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,

Next Topics on Trending Feed

  • 8

    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?