dousi2553 2016-09-27 11:56 采纳率: 0%
浏览 35

从网址url查找电子邮件地址[关闭]

I want to find website email address(like name@example.com) from website url link.
so, is it possible to find email address from website url ?
if yes then, please share how to implement.
Language is not necessary.

as per my view,
if we read content from website url using CURL, and
find email address from them using regular expression.
is it possible ?

find bellow code for read page content from website url using CURL:

<?php
$url = 'yoururl';
$curl = curl_init();
curl_setopt($curl, CURLOPT_URL, $url);
curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
curl_setopt($curl, CURLOPT_HEADER, false);
$data = curl_exec($curl);
curl_close($curl);

after then find email address using regex expression from $data string.

Is it possible ?

  • 写回答

2条回答 默认 最新

  • douhuanglou1445 2016-09-27 12:06
    关注

    An easy regexp on the top of my head.

    preg_match_all("/([a-z0-9\.]{1,50}@[a-z0-9]{1,50}\.[a-z]{1,5})/ims",$data,$matches)
    
    评论

报告相同问题?

悬赏问题

  • ¥50 用易语言http 访问不了网页
  • ¥50 safari浏览器fetch提交数据后数据丢失问题
  • ¥15 matlab不知道怎么改,求解答!!
  • ¥15 永磁直线电机的电流环pi调不出来
  • ¥15 用stata实现聚类的代码
  • ¥15 请问paddlehub能支持移动端开发吗?在Android studio上该如何部署?
  • ¥20 docker里部署springboot项目,访问不到扬声器
  • ¥15 netty整合springboot之后自动重连失效
  • ¥15 悬赏!微信开发者工具报错,求帮改
  • ¥20 wireshark抓不到vlan