Boolean Searches in OEP 5

Author Message
Rozan Kitchen 10/29/2008 10:14 pm
I just upgraded to OEP 5. According to a forum post, you stated that version 5 would include boolean variables to use, but I can''t find it in the documentation, and it doesn''t appear to work in my search attempts. So, first is that feature included? Second, if it not, how can I download only the product pages of a site like www.mfasco.com. For example: http://www.buyandsellfirstaid.com/product_info.php/p/medique-medi-phenyl-sinus-cold-hay-fever-and-flu-relief-250x2/products_id/2198 is a product page. I would like to use the url http://www.buyandsellfirstaid.com/product_info.php/p/*/products_id/*/ if the variables were working, so that it would download the individual products. However, that doesn''t work. I would be very grateful for your help.

Rozan Kitchen 10/29/2008 10:19 pm
Excuse me: I meant http://www.mfasco.com/product_info.php/p/medique-medi-phenyl-sinus-cold-hay-fever-and-flu-relief-250x2/products_id/2198
Oleg Chernavin 10/30/2008 08:02 am
OK. What about the following in the URLs field:

{:name=medique-medi-phenyl-sinus-cold-hay-fever-and-flu-relief-250x2}{:id=2198}
http://www.mfasco.com/product_info.php/p/{:name}/products_id/{:id}

Then in URL Filters - Directory keywords you could use:

/{:name}/*/{:id}/

Or if 2198 is a filename (no slash after it in other URLs to follow), then use URL Filters - Filename:

/{:name}/*/{:id}*

Best regards,
Oleg Chernavin
MP Staff
Rozan Kitchen 10/30/2008 09:30 am
Thanks for your help. I tried your solution, but I believe it only download the flu relief product. I would like to download all the products. Doesn''t the macro {:name=****} provide a variable that will be inserted into the URL Filters - Directory keyword slot /{:name}? If so, that restricts the download to only that one product. Also, the number 2198 is a directory, with a default.html that I need to retrieve. So, each product on mfasco.com is in a numbered directory, which is the product id, and has a default.html that I need to download.

> OK. What about the following in the URLs field:
>
> {:name=medique-medi-phenyl-sinus-cold-hay-fever-and-flu-relief-250x2}{:id=2198}
> http://www.mfasco.com/product_info.php/p/{:name}/products_id/{:id}
>
> Then in URL Filters - Directory keywords you could use:
>
> /{:name}/*/{:id}/
>
> Or if 2198 is a filename (no slash after it in other URLs to follow), then use URL Filters - Filename:
>
> /{:name}/*/{:id}*
>
> Best regards,
> Oleg Chernavin
> MP Staff
Oleg Chernavin 10/30/2008 10:53 am
Yes, this macro name (once defined) can be used in the URLs field, in keywords and URL Substitutes.

So it is easy to change the variable and all other settings will use its new value.

Can you please give me few examples of URLs that you want to follow? I will show how to make the keyword(s) to download them.

Oleg.
Rozan Kitchen 10/30/2008 11:26 am
Oleg, here are some examples:
http://www.mfasco.com/product_info.php/p/bird-cronin-cindy-wrist-support-medium-right/products_id/8992
http://www.mfasco.com/product_info.php/safety/lens-cleaners/p/acrylic-safety-glass-lens-cleaning-wipe-dispenser/cPath/50_390/products_id/2706
http://www.mfasco.com/product_info.php/p/orange-county-choppers-occ203-safety-glass-black-frame-red-mirror-lens/products_id/3607
http://www.mfasco.com/product_info.php/first-aid/antiseptics/p/antiseptic-aerosol-first-aid-spray-3oz/cPath/10_54/products_id/1485
Oleg Chernavin 10/30/2008 11:55 am
They are all different. I think, you should simply use the following keyword in the Directory - Included keywords list:

/product_info.php/*/products_id/

This will allow loading all of the products. No macros are necessary here.

Oleg.