How to extract only emails from bio?

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 protected]"

How do I only extract [email protected] in this case, is there a way to use the ".com" as a regex to extract the email ?
 

imagetypers

Client
Регистрация
25.04.2011
Сообщения
13
Благодарностей
0
Баллы
1
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,})$;
 

EtaLasquera

Client
Регистрация
02.01.2017
Сообщения
526
Благодарностей
112
Баллы
43
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.
 

LightWood

Moderator
Регистрация
04.11.2010
Сообщения
2 382
Благодарностей
917
Баллы
113

2xdswu

Новичок
Регистрация
03.04.2016
Сообщения
21
Благодарностей
4
Баллы
3
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.
 

LightWood

Moderator
Регистрация
04.11.2010
Сообщения
2 382
Благодарностей
917
Баллы
113
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.
 

2xdswu

Новичок
Регистрация
03.04.2016
Сообщения
21
Благодарностей
4
Баллы
3
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.
 

Frcc78bis

Client
Регистрация
06.07.2017
Сообщения
49
Благодарностей
2
Баллы
8

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