From dev-return-18353-archive-asf-public=cust-asf.ponee.io@manifoldcf.apache.org Tue Aug 14 16:53:04 2018 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx-eu-01.ponee.io (Postfix) with SMTP id 80B8D180654 for ; Tue, 14 Aug 2018 16:53:03 +0200 (CEST) Received: (qmail 73661 invoked by uid 500); 14 Aug 2018 14:53:02 -0000 Mailing-List: contact dev-help@manifoldcf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@manifoldcf.apache.org Delivered-To: mailing list dev@manifoldcf.apache.org Received: (qmail 73650 invoked by uid 99); 14 Aug 2018 14:53:02 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 14 Aug 2018 14:53:02 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id 139CFCA4C4 for ; Tue, 14 Aug 2018 14:53:02 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -109.501 X-Spam-Level: X-Spam-Status: No, score=-109.501 tagged_above=-999 required=6.31 tests=[ENV_AND_HDR_SPF_MATCH=-0.5, KAM_ASCII_DIVIDERS=0.8, RCVD_IN_DNSWL_MED=-2.3, SPF_PASS=-0.001, USER_IN_DEF_SPF_WL=-7.5, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id JvdoAdniN6zM for ; Tue, 14 Aug 2018 14:53:01 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTP id 1231D5F206 for ; Tue, 14 Aug 2018 14:53:01 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 5679EE0177 for ; Tue, 14 Aug 2018 14:53:00 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 152C523F99 for ; Tue, 14 Aug 2018 14:53:00 +0000 (UTC) Date: Tue, 14 Aug 2018 14:53:00 +0000 (UTC) From: "Olivier Tavard (JIRA)" To: dev@manifoldcf.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CONNECTORS-1500) HTML Extractor transformation connector contribution MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CONNECTORS-1500?page=3Dcom.atla= ssian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId= =3D16579906#comment-16579906 ]=20 Olivier Tavard commented on CONNECTORS-1500: -------------------------------------------- Hello, [~kwright@metacarta.com]=C2=A0I saw that you did some modifications on the = code : thanks for that. I did a new patch for logging fix for JsoupProcessi= ng=C2=A0class that uses connector logger as you did for other part of the c= ode. This patch replaces the previous one. Thank you, Olivier [^patch_html_extractor_08_14_18.txt] > HTML Extractor transformation connector contribution > ---------------------------------------------------- > > Key: CONNECTORS-1500 > URL: https://issues.apache.org/jira/browse/CONNECTORS-150= 0 > Project: ManifoldCF > Issue Type: Improvement > Affects Versions: ManifoldCF 2.9.1 > Reporter: Olivier Tavard > Assignee: Karl Wright > Priority: Minor > Fix For: ManifoldCF 2.10 > > Attachments: fix_englobing_tag_selection.txt, global_patch.txt, h= tml_extractor_transformation_connector.txt, patch_html_extractor_08_14_18.t= xt, patch_html_extractor_fix_logs_08_10_18.txt > > > Hi, > I developed a transformation connector based on Jsoup. The goal of this c= ode is to simply choose an encompassing tag in a HTML document for text ext= racting. And inside this tag, this connector allows you to remove subparts = that you do no want : all the tags corresponding to declared types or speci= fic attribute tag names for example. > The code is in Apache V2 licence =C2=A0and=C2=A0it is in attachment. > It needs some work including code refactoring, renaming classes, unit tes= ts that I will be able to do if you are interested by the code. > The documentation is here : > [https://datafari.atlassian.net/wiki/spaces/DATAFARI/pages/237240321/HTML= +Extractor+Transformation+connector]<[https://datafari.atlassian.net/wiki/s= paces/DATAFARI/pages/237240321/HTML+Extractor+Transformation+connector] > =C2=A0 > It does not use additional libraries that=C2=A0the ones already present i= n MCF project. It is based on Jsoup library on lib folder. > Best regards, > Olivier -- This message was sent by Atlassian JIRA (v7.6.3#76005)