Menu

Help understanding addURLFilterRule

Help
Anonymous
2016-12-14
2016-12-14
  • Anonymous

    Anonymous - 2016-12-14

    Hi guys,

    Can you help me, I need to avoid crawl some url but I dont understand so much about addURLFilterRule

    lets say that I dont want to crawl url that begins with http://somedomain.com/blablabla/buuuuu ...

    is something like this?

    $crawler->addURLFilterRule("^http://somedomain.com/blablabla/"); only with ^ and nothing else in the end?

    Thanks for your help!!!!

     
  • James Shaver

    James Shaver - 2016-12-14

    Hi,
    It depends on what all of your blabla really is, and what you're really trying to filter out. it's regular expression based, so you can be as specific or general as you need to be.

    This might be a good place to start:
    http://www.regular-expressions.info

     

Anonymous
Anonymous

Add attachments
Cancel