Monday, June 6, 2011

Grab HTML from RSS Link

I'm getting very curious to save news from web. and i get suggestion from my friend, Sigit Adi Nugroho. He said we can get news content from rss. In rss we can get the link to news. then we grab news address and save to file .htm. I searching to many tutorial, finally i get the code from www.java2s.com . This code below will read rss and saving rss to file .txt then get link from there for grabbing and saving to html file.
I will waiting your comment for this code. Thanks u very much.

/**
 *
 * @author Zidny
 */
import com.sun.syndication.feed.synd.*;
import com.sun.syndication.feed.synd.SyndFeed;
import com.sun.syndication.io.SyndFeedInput;
import com.sun.syndication.io.XmlReader;
import java.io.BufferedReader;

Reading rss and save to file v.2

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package rssreader;

/**
 *
 * @author Zidny
 */
import com.sun.syndication.feed.synd.*;
import com.sun.syndication.feed.synd.SyndFeed;
import com.sun.syndication.io.SyndFeedInput;
import com.sun.syndication.io.XmlReader;
import java.io.BufferedWriter;

Sunday, June 5, 2011

Reading rss and save to file

Hi guys, this code is modification of code to read rss on my note before. in this version we will save rss that program read to a file.

import com.sun.syndication.feed.synd.*;
import com.sun.syndication.feed.synd.SyndFeed;
import com.sun.syndication.io.SyndFeedInput;
import com.sun.syndication.io.XmlReader;
import java.io.BufferedWriter;
import java.io.File;
import java.io.FileWriter;

Reading RSS

Source code below for reading RSS from news site (ex. bbc). I get this code from rgagnon. ROME library can be downloader here (JDOM, ROME)

import com.sun.syndication.feed.synd.*;
import com.sun.syndication.feed.synd.SyndFeed;
import com.sun.syndication.io.SyndFeedInput;
import com.sun.syndication.io.XmlReader;
import java.net.URL;
import java.util.List;
import java.util.Iterator;

My First Date with Lucene


My First Date with Lucene

oleh:
Muhammad Zidny Naf'an
Mahasiswa UIN Syarif Hidayatullah Jakarta, Indonesia

Interested in Information Retrieval System.
Email: zidny_nafan@yahoo.com


Pendahuluan
Lucene search engine adalah suatu library yang berbasis open source. Dibangun oleh Apache yang sekarang ini telah menginjak pada versi ke 3.1. lucene dapat melakukan peng-indeks-an pada berbagai tema informasi dan dapat melakukan pencarian pada berbagai kriteria.

Kemampuan yang dimiliki Lucene seperti yang ditulis oleh Brian Goetz pada situs javaworld.com adalah sebagai berikut:
-       Kemmpuan pencarian pada arsip-arsip email.
-       Mencari dokumen secara online
-       Kemampuan pencarian halaman web
-       Mencari website
-       Mencari konten pada suatu dokumen
-       Kemampuan dalam mengetahui versi dokumen
-       Pencarian berita

Hello World

Hello guys, my name is zidny (zidny_nafan@yahoo.com), i'm from Indonesia. A student at Islamic University of Syarif Hidayatullah Jakarta, Indonesia. This blog is dedicated for my bachelor research. My research is about Information Retrieval especially in Question-Answering System. So I need more suggestion from you all. Thanks u very much. ^_^
you can