Snippets created by Taha Hachana

  • Regex Match Index

    A function for interpreting the zero-based index property of a successful regular expression match in terms of line and column numbers.

    22 people like this

    Posted: 9 years ago by Taha Hachana

  • URL Canonicalization

    This function produces safe URLs for Web requests or URI construction. It forces the pattern: http:// + www. OR subdomain. + domain + absolute path. When used in an application that takes URLs as input, the user would be able to type "example.com" instead of "http://example.com" or "http://www.example.com". It also supports domains like google.co.uk or google.com.au.

    8 people like this

    Posted: 9 years ago by Taha Hachana

  • Web Crawler

    This snippet features an F# Web crawler that i'm already using in 2 applications (slightly modified). It's based on a scalable network of communicating agents that follow URLs extracted from HTML pages until reaching the specified limit.

    23 people like this

    Posted: 9 years ago by Taha Hachana

  • Split A Seq Into Chunks

    This function splits a sequence into lists of length n until there is less than n elements then those are returned.

    5 people like this

    Posted: 7 years ago by Taha Hachana

  • Screen Scraping with the XTract Package

    XTract (https://github.com/TahaHachana/XTract) is a simple screen scraping package for F#. This sample shows how to describe the data model using a record, define the extractors that will collect the data using CSS selectors, scrape the data from the target URL(s) and save it.

    1 people like this

    Posted: 5 years ago by Taha Hachana

  • Quartz Job Scheduling

    A simple example showing how to use Quartz.NET, an open source job scheduling system, with FSharp.

    0 people like this

    Posted: 7 months ago by Taha Hachana