How to extract only emails from bio?

  • Автор темы Автор темы 2xdswu
  • Дата начала Дата начала

2xdswu

Новичок
Регистрация
03.04.2016
Сообщения
21
Реакции
4
Баллы
3
Hi,

I know how to extract bio from a certain area.

But is it possible to scrape ONLY the emails in the bio as I've filtered the bio and only showing emails.

For example like:

"For entertainment & fun contact please contact me at email@gmail.com"

How do I only extract email@gmail.com in this case, is there a way to use the ".com" as a regex to extract the email ?
 
Its not possible to extract emails using .com as regex, but i would suggest to use the regular expression:
^[_A-Za-z0-9-\\+]+(\\.[_A-Za-z0-9-]+)*
@[A-Za-z0-9-]+(\\.[A-Za-z0-9]+)*(\\.[A-Za-z]{2,})$;
 
If you take a text from html I sugest to use regex over html code (?<=mailto:).*(?=\ )
Sometimes you can take something who have '@' in text :p
imagetypers regext will work fine but consider grab html content.
 
I'm trying to scrape from bio on instagram.

So something like "(?<=mailto:-).*(?=\ )" wouldn't work.

I'm using Take DOM via parse regex, but trying to use this "^[_A-Za-z0-9-\\+]+(\\.[_A-Za-z0-9-]+)*@[A-Za-z0-9-]+(\\.[A-Za-z0-9]+)*(\\.[A-Za-z]{2,})$;"

Didn't work either.
 
Don't u have solution yet?
Most easy part. Just get some part of text from page. Use a RegExp tester, for get information from DOM.
Also,u can get value of attribute from field with email. Use an Action Designer.
 
Don't u have solution yet?
Most easy part. Just get some part of text from page. Use a RegExp tester, for get information from DOM.
Also,u can get value of attribute from field with email. Use an Action Designer.

I'm able to scrape bio from IG, what i'm trying to do is only get the email. Filtering everything else and only getting the email address.
 

Кто просматривает тему: (Всего: 0, Пользователи: 0, Гости: 0)