FoxPro Examples

ChilkatHOMEASPVisual BasicVB.NETC#Visual C++CMFCDelphiFoxProJavaPerlPHPPythonRubySQL ServerVBScript

Visual FoxPro Examples

Bounced Mail
Character Encoding
Digital Certificates
Digital Signatures
Email
FTP
HTML-to-XML
HTTP
IMAP
Encryption
MHT / HTML Email
RSA Encryption
S/MIME
Socket
Spider
String
Tar
Upload
XML
XMP
Zip Compression
Self-Extractor

More Examples...
Email Object
POP3
SMTP
RSS
Atom
Byte Array
Service
PPMD
Deflate
DH Key Exchange
DSA

Unreleased...
Bzip2
LZW
Bz2
Icon

 

Non-Chilkat Links
Text and String Handling

Avoiding Outbound Links Matching Patterns

The spider accumulates outbound links when crawling. Your program may specify any number of "avoid patterns" to prevent any link matching at least one of the wildcarded patterns from being added.

Download Chilkat Spider ActiveX

LOCAL loSpider
LOCAL lnSuccess
LOCAL i
LOCAL lcUrl

*  The Chilkat Spider component/library is free.
loSpider = CreateObject('Chilkat.Spider')

*  First, we'll get the outbound links for a page in the
*  Google directory.  Then we'll add some avoid patterns
*  and then re-fetch, to see it work...

loSpider.Initialize("directory.google.com")
loSpider.AddUnspidered("http://directory.google.com/Top/Recreation/Food/Cheese/")

lnSuccess = loSpider.CrawlNext()

*  Display the outbound links

FOR i = 0 TO loSpider.NumOutboundLinks - 1
    ? loSpider.GetOutboundLink(i)
NEXT

*  The output:
*  http://www.cheese.com/
*  http://www.cheesediaries.com/
*  http://www.WisDairy.com/
*  http://www.newenglandcheese.com
*  http://www.ilovecheese.com
*  http://www.cheesefromspain.com
*  http://www.realcaliforniacheese.com/
*  http://www.frencheese.co.uk/
*  http://www.cheesesociety.org/
*  http://www.specialcheese.com/queso.htm
*  http://www.franceway.com/cheese/intro.htm
*  http://www.foodsubs.com/Chesfirm.html
*  http://www.cheeseboard.co.uk/
*  http://www.thecheeseweb.com/
*  http://www.vtcheese.com/
*  http://www.coldbacon.com/cheese.html
*  http://www.norwegiancheeses.co.uk/
*  http://www.reluctantgourmet.com/cheese.htm
*  http://www.lancewood.co.za/
*  http://www.switzerlandcheese.ca
*  http://www.frenchcheese.dk/
*  http://www.dolcevita.com/cuisine/cheese/cheese.htm
*  http://cheeseisland.net/
*  http://www.cheestrings.ca/
*  http://www.dreamcheese.co.uk
*  http://hgic.clemson.edu/factsheets/HGIC3506.htm
*  http://www.epicurious.com/cooking/how_to/food_dictionary/entry?id=1815
*  http://www.mousetrapcheese.co.uk
*  http://taquitos.net/yum/gc.shtml
*  http://www.greek-recipe.com/static/greek-cheese
*  http://www.park.org/Netherlands/pavilions/food_and_markets/cheese/introduction.html
*  http://www.dairyfarmers.org/engl/recipes/4_1.asp
*  http://www.prairieridgecheese.com/wischeesguid.html
*  http://dmoz.org/cgi-bin/add.cgi?where=Recreation/Food/Cheese
*  http://dmoz.org/about.html
*  http://dmoz.org/cgi-bin/apply.cgi?where=Recreation/Food/Cheese

*  Do it again, but this time with avoid patterns.
loSpider.Initialize("directory.google.com")
loSpider.AddUnspidered("http://directory.google.com/Top/Recreation/Food/Cheese/")

*  Add some avoid patterns:
loSpider.AddAvoidOutboundLinkPattern("*dmoz.org*")
loSpider.AddAvoidOutboundLinkPattern("*?id=*")
loSpider.AddAvoidOutboundLinkPattern("*.co.uk*")
lnSuccess = loSpider.CrawlNext()

? "-----------------------"

*  Display the outbound links
FOR i = 0 TO loSpider.NumOutboundLinks - 1
    ? loSpider.GetOutboundLink(i)
NEXT

*  Output:
*  http://www.cheese.com/
*  http://www.cheesediaries.com/
*  http://www.WisDairy.com/
*  http://www.newenglandcheese.com
*  http://www.ilovecheese.com
*  http://www.cheesefromspain.com
*  http://www.realcaliforniacheese.com/
*  http://www.cheesesociety.org/
*  http://www.specialcheese.com/queso.htm
*  http://www.franceway.com/cheese/intro.htm
*  http://www.foodsubs.com/Chesfirm.html
*  http://www.thecheeseweb.com/
*  http://www.vtcheese.com/
*  http://www.coldbacon.com/cheese.html
*  http://www.reluctantgourmet.com/cheese.htm
*  http://www.lancewood.co.za/
*  http://www.switzerlandcheese.ca
*  http://www.frenchcheese.dk/
*  http://www.dolcevita.com/cuisine/cheese/cheese.htm
*  http://cheeseisland.net/
*  http://www.cheestrings.ca/
*  http://hgic.clemson.edu/factsheets/HGIC3506.htm
*  http://taquitos.net/yum/gc.shtml
*  http://www.greek-recipe.com/static/greek-cheese
*  http://www.park.org/Netherlands/pavilions/food_and_markets/cheese/introduction.html
*  http://www.dairyfarmers.org/engl/recipes/4_1.asp
*  http://www.prairieridgecheese.com/wischeesguid.html

Need a specific example? Send a request to support@chilkatsoft.com

© 2000-2007 Chilkat Software, Inc. All Rights Reserved.

Mail Component · .NET Email Component · ASP Mail Component · XML Parser