Code Monkey home page Code Monkey logo

cx-extractor's Introduction

Hi there 👋

  • 🔭 Backend developer
  • 💬 Read my blog here https://blog.est.im/
  • 📫 Email me? i@ with TLD above.
  • ⚡ Fun fact: My github account was hacked once lol

cx-extractor's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

cx-extractor's Issues

损耗时间的一步

source = links.matcher(source).replaceAll("");

样例:http://news.itxinwen.com/2013/0802/515691.shtml

单是这一步 将耗时90s+

建议:可以直接通过source = source.replaceAll("<[^>]+>", "");  
移除所有Tag?



Original issue reported on code.google.com by [email protected] on 2 Aug 2013 at 8:01

文件名乱码

Perl版本中,生成的txt文件名都是乱码,文件内容正常。

Original issue reported on code.google.com by [email protected] on 21 May 2013 at 7:55

在博客和文字、图片、脚本代码过多的情况下匹配不理想的问题

cx-extractor 
算法不错,提供了一种新的思路,以前我做过的是分析提取��
�页面中所有的TABLE和DIV区块,按区块字段的大小多少来判断��
�

我按cx-extractor算法做了一下,碰到以下几个问题:我是用C#来
做的

1、preProcess不能过滤标签中有脚本的情况,如其中的IMG

   http://developer.51cto.com/art/201012/236066.htm

2、是否考虑以下2个方面的进一步改进;即在第一次匹配失败
后进行下面2中再次过滤
   1、正文一般是DIV或者TABLE(TR/TD) 进行包围的,将这些标签换成特殊标签;在行和块合并时把这些特殊标签作为一种参考界定
   2、类似下文中,正文中<p>应用较多,P中间的标签可以替换掉,计算连续的P标签

   http://hi.baidu.com/jrckkyy/blog/item/a0c70a995e3579196f068c4e.html

3、博客方面还不是很理想

   http://www.cnblogs.com/zhoujg/archive/2010/12/04/1895887.html 
   http://sarin.javaeye.com/blog/830831
   http://blog.sina.com.cn/s/blog_4c4fd3070100nbvt.html?tj=1

4、这篇新闻好像也出了点问题

   http://news.sina.com.cn/c/2010-12-04/100718432475s.shtml  

Original issue reported on code.google.com by [email protected] on 4 Dec 2010 at 3:07

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.