Menu

Find specific file type

Help
2016-09-09
2016-09-10
  • Gino Côté

    Gino Côté - 2016-09-09

    I find that the most important thing that a crawler can do and PHPCrawl do not explain, is how to grab specific file type.
    If i want to get .mp4 .mp3 .jgp .pdf files ect...
    How can i do that?

     

    Last edit: Gino Côté 2016-09-09
  • James Shaver

    James Shaver - 2016-09-10

    Your probably looking for the mime types.
    $crawler->addContentTypeReceiveRule("#video/mp4#");
    $crawler->addContentTypeReceiveRule("#audio/mpeg3#");

    Untested, so you'll need to try it.

     

Anonymous
Anonymous

Add attachments
Cancel





Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.