Hi guys

I start to be able to generate such files for a Pharo project catalog 

Title: Truc

1. Soup

Soup is a frameworks for scrapping HTML. It offers a simplified query mechanism to abstract over the XML and HTML structures of a document.

1.1. Keywords

web query XML HTML scrapping

1.2. Implementation notes

It is composed of some keys classes:

  • SoupElement is the root of elements that are extracted during the parsing of an HTML document. Contrary to traditional HTML Parser, Soup produces a limited set of elements which approximate the HTML elements but supports querying and extracting information.

  • Soup. Soup is the main public class of the package. It is the class to interact with as shown by the tests.

The best way to get started is to get a soup of html elements using Soup class>>fromString: as follows:

	Soup fromString: 'http://www.bedetheque.com/album-105582-BD-Atomium-Express.html' 
	    asUrl retrieveContents        
Tests of the Soup class are the place to start to learn the API.

1.3. Main repository

The main repository is: http://www.smalltalkhub.com/mc/PharoExtras/Soup/main

MCHttpRepository
	location: http://www.smalltalkhub.com/mc/PharoExtras/Soup/main
	user: ''
	password: ''        

1.4. Main Versions

stable: spec
	<symbolicVersion: #'stable'>

	spec for: #'pharo1.3.x' version: '0.2'.
	spec for: #'pharo1.4.x' version: '0.2'.
	spec for: #'pharo2.x' version: '1.4'.	
	spec for: #'pharo3.x' version: '1.4'.        

1.5. Current loading expressions and dev history

(ConfigurationOfSoup project version: #'stable') load
(ConfigurationOfSoup project version: '1.4') load        

21/02/2013 - Migrated to SmalltalkHub.

(ConfigurationOfSoup project version: '1.4') load        

Adding better stable version.

(ConfigurationOfSoup project version: '1.3') load        

Todo: update when XMLSupport will be migrated to Smalltalk.

Title: Truc

1. XMLWriter

XMLWriter allows you to generate well-formed XML documents using a nice API based on a canvas and tag brush API.

1.1. Keywords

XML

1.2. Implementation notes

The main entry point is the class XMLWriter.

Here are examples of the API

	| writer |
	writer := XMLWriter new.
	writer tag
		name: 'emptyTag';
		attributeAt: 'a' put: 'one';
		write.        
	| writer |
	writer := XMLWriter new.
	writer
		enablePrettyPrinting;
		xml;
		comment: 'an example'.
	writer tag
		name: 'example:user';
		xmlnsAt: 'example' put: 'urn://example';
		with: [
			writer
				tag: 'username' with: 'jsmith';
				tag: 'real-name' with: 'John Smith';
				tag: 'age' with: '25';
				tag: 'id' with: '101']         

1.3. Main repository

The main repository is: http://smalltalkhub.com/mc/PharoExtras/XMLWriter/main

MCHttpRepository
	location: http://smalltalkhub.com/mc/PharoExtras/XMLWriter/main
	user: ''
	password: ''        

1.4. Main Versions

stable: spec
	<symbolicVersion: #'stable'>

	spec for: #'pharo1.3.x' version: '0.2'.
	spec for: #'pharo1.4.x' version: '0.2'.
	spec for: #'pharo2.x' version: '1.4'.	
	spec for: #'pharo3.x' version: '1.4'.        

1.5. Current loading expressions and dev history

Version 2.2.1 - 2013-07-10Merged fix of Camillo for fileSystem interaction.

	(ConfigurationOfXMLWriter project version: '2.2.1') load        

Version 2.2.0 - Migrated to PharoExtras

	(ConfigurationOfXMLWriter project version: '2.2.0') load        
Version 2.1.0Introduced tests and symbolic configurations

(ConfigurationOfXMLWriter project version: '2.1.0') load
(ConfigurationOfXMLWriter project version: '2.1.0') record loadDirective        

Version 2.0.0After SmalltalkHub Migration and the introduction of configuration in other projects

pre smalltalkhub migration

(ConfigurationOfXMLWriter project version: '1.0.5') load        


I added some metadata to configuration files and it pays off.

Stef

Reply via email to