<p>I made a webcrawler in Go to get all links from a site. Now I need to send every url via client to a PJS / SJS webserver, so that the webserver can do stuff with the link.</p>
<p> </p>
<p>Working local on my machine does not work, PhantomJS 1.9.8 and 2.0 are crashing without reasons when they crawl too many urls in their own script (sequentially, no RAM problems, page.close() after every page.open()) and SlimerJS has no function to read a file line by line, it's not implemented yet sadly).</p>
<p>So my only hope is to use a client/server way to send every url as an own request in the hope that it doesn't crash.</p>
<p> </p>
<p>I don't find a way to send a simple string, the webserver is listening on 127.0.0.1:8080, but how do I send something to it?</p>
<hr/>**评论:**<br/><br/>FIuffyRabbit: <pre><p>You can use go to send a post/get request to your phantomJS app. </p></pre>
这是一个分享于 的资源,其中的信息可能已经有所发展或是发生改变。
入群交流(和以上内容无关):加入Go大咖交流群,或添加微信:liuxiaoyan-s 备注:入群;或加QQ群:692541889
0 回复
- 请尽量让自己的回复能够对别人有帮助
- 支持 Markdown 格式, **粗体**、~~删除线~~、
`单行代码`
- 支持 @ 本站用户;支持表情(输入 : 提示),见 Emoji cheat sheet
- 图片支持拖拽、截图粘贴等方式上传