Skip to content
This repository has been archived by the owner on Feb 2, 2022. It is now read-only.

a little sample to use plain JDBC in order to store crawled data into a PostgreSQL database

License

Notifications You must be signed in to change notification settings

rzo1/crawler4j-postgres-sample

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

crawler4j-postgres-sample

This is a very simple example how crawler4j can be used to store crawled text material in a PostgreSQL database.

Technology involved:

Setup

  • Create a database in PostgreSQL.
  • Schema:
CREATE SEQUENCE id_master_seq INCREMENT 1 MINVALUE 1 MAXVALUE 9223372036854775807 START 1 CACHE 1;
CREATE TABLE webpage(id bigint NOT NULL, html TEXT, text TEXT, url varchar(4096), seen timestamp without time zone NOT NULL, primary key (id));

About

a little sample to use plain JDBC in order to store crawled data into a PostgreSQL database

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages