Better HN
topnewbestaskshowjobs
Log inSign up

plantpark

79 karma · joined Aug 30, 2014 (12y ago) · 24 submissions

Submissions

1.

Analysis what crowd talk about when the Dow plunges biggest one day fall with ML(insightninja.net ↗)

1 points · by plantpark · 8y ago · discuss

comment 8y ago · link · parent

I thought Pie chart will make the percentage more clearly. Do you have any suggestions for the chart? Thanks!

comment 8y ago · link · parent

Sorry for that, I will check it again.

comment 8y ago · link · parent

What kind of chart do you think is better for such data? Looking forward to your advice!

comment 8y ago · link · parent

Thanks, I will check the source for more details.

comment 8y ago · link · parent

It's not about some simple word frequencies of words. Some common words like "like" "need" "second" "part" in the dataset of whole documents isn't so meaningful in a specific sentence. Google "tf-idf" will show you more details about this.

7.

What I found When I analysis million followers of President Trump with nlp(insightninja.net ↗)

14 points · by plantpark · 8y ago · 13 comments

8.

Deploy your distributed system efficiently with fabric(medium.com ↗)

3 points · by plantpark · 9y ago · discuss

comment 9y ago · link · parent

I've seen this article.Great article about distributed crawler. Mine just is a demo version of his.

comment 9y ago · link · parent

Great crawler, Thanks for your share.

comment 9y ago · link · parent

Thanks for your comment. I've used multiprocessing/threads/geven/asyncio before. And I will have a full test with these libraries or tools. This post is just a quick demo to build a distributed crawler with docker. Asyncio and aiohttp is a great combination for this case , using less memory and faster. But aiohttp only support http proxy, perhaps this is the only case not so perfect.

Thanks for your comment again. welcome to discuss more technical details about it.

comment 9y ago · link · parent

You are right. But with more codes or tools , it could do this too. It's just a quick demo for distributed crawler. If you moniter traffic of your target website with js rendered content, you will find json file and json api. And what you need next is just the same code in my article.

comment 9y ago · link · parent

Thanks for your comment. If you have the same test with cloud server or some public website , perhaps it will decrease some.

I've used multiprocessing/threads/geven/asyncio before. And I will have a full test with these libraries.

Thanks again!

comment 9y ago · link · parent

Thanks for your comment. Great article for networking. I'm not so familiar with NAT of linux, so could you post more details about it with python or docker, performance/advantage or something else?

Thanks again.

comment 9y ago · link · parent

Sorry for that incomplete description in my article. Because of GIL of python, python application could not make full use of machines. Of course, some libraries like gevent/asyncio could fix it well. I will have a test to find out which one is the best, include docker.

Thanks for your comment.

comment 9y ago · link · parent

Thanks for your comment.

You are right, asyncio and aiohttp is a great combination. I've used them both before. Though aiohttp cost less memory than requests, aiohttp does't support https proxy. This is the only one that isn't so perfect.

Besides , asyncio is something the same as concurrency of celery. I will have a test which one will have a better performance.

Thanks for your comment again.

comment 9y ago · link · parent

Thanks for your comment. This article is a tutorial that tell people how to build a distributed system with docker and celry easily.

Scrapy is good framework for crawler. I used it before, but it doesn't have some features I want. Writing a brand new one is easier for me.

Of course , I am open to compare the special performances of these two crawlers. Welcome to have a discuss more technical details here.

Thanks for your comment again.

comment 9y ago · link · parent

Sorry for incomplete description in my article.

It's just a tutorial about how to use docker and celery to build a distributed system. I will have more test about the performance of multiprocess/threads/concurrencies or some other library that supports these technics. In this case, if you don't know how to or even don't want to build a test web server, some big sites like example.com could be your choice. BUT please be gentle to these public sites.

Thanks for your comment.

comment 9y ago · link · parent

celery has a prefork pool that could take use of multiple processes.

comment 9y ago · link · parent

Some library in python ,such as asyncio or gevent could do some work asynchronously and efficently. I will have a test later for these library. In the meanwhile , welcome to post more details about asynchronous of Node.js. Thanks for your comment again!

comment 9y ago · link · parent

Thanks for your comment, I will have a test with a local server later and find out what's the upper limit of mine

22.

Build a crawler to crawl million pages with only one machine in just 2 hours(medium.com ↗)

134 points · by plantpark · 9y ago · 54 comments

23.

How to build docker cluster with celery and RabbitMQ in 10 minutes(medium.com ↗)

1 points · by plantpark · 9y ago · discuss

24.

A spider crawl all room info of airbnb ,include reservation of the room(github.com ↗)

7 points · by plantpark · 10y ago · discuss