1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
mel-nik [20]
3 years ago
6

Develop a crawler that collects the email addresses in the visited web pages. You can write a function emails() that takes a doc

ument (as a string) as input and returns the set of email addresses (i.e., strings) appearing in it. You should use a regular expression to find the email addresses in the document.
Computers and Technology
1 answer:
Mars2501 [29]3 years ago
5 0

Answer:

see explaination

Explanation:

import re

def emails(document):

"""

function to find email in given doc using regex

:param document:

:return: set of emails

"""

# regex for matching emails

pattern = r'[\w\.-]+at[\w\.-]+\.\w+'

# finding all emails

emails_in_doc = re.findall(pattern, document)

# returning set of emails

return set(emails_in_doc)

# Testing the above function

print(emails('random text ertatxyz.com yu\npopatxyz.com random another'))

You might be interested in
A life insurance salesperson who takes advantage of the foot-in-the-door phenomenon would be most likely to:________
4vir4ik [10]

Answer:

d. ask customers to respond to a brief survey of their attitudes regarding life insurance.

Explanation:

A life insurance policy can be defined as a contract between a policyholder and an insurer, in which the insurer agrees to pay an amount of money to a specific beneficiary either upon the death of the insured person (decedent) or after a set period of time.

A salesperson (sales representative) refers to an individual or employee who is saddled with the responsibility of taking orders from customers, as well as selling finished goods and services to consumers or end users.

A foot-in-the-door phenomenon can be defined as a compliance (persuasive) technique or tactics that assumes a person agreeing to perform a small request increases the likelihood of he or she agreeing to a subsequent larger request. Thus, it posits that when a person agrees to a small, it makes it difficult for him or her to decline a second, larger (bigger) request.

In this context, a life insurance salesperson who takes advantage of the foot-in-the-door phenomenon would most likely ask his or her customers to respond to a brief survey of their attitudes regarding life insurance.

7 0
3 years ago
How do I answer question
Nana76 [90]

Answer:

To answer a question on brainly, there is a add answer button below the question. Please look at the attached, it shows you the add answer button.

Explanation:

Once you click on add answer, brainly will take you to something that looks like a note and all you have to do is type the answer and explanation. Once you do that, click on the add your answer button on the top right corner, and your answer will be posted.

4 0
3 years ago
What is a characteristic of high-level computer programming languages?
Zinaida [17]

Answer:

1.The high level language are closer to human language the instruction written in this language are similar to English like words and statements

2. It is easy to understand

3. It is easy to modify

4. User friendly

5. Standarized syntax

6. Deep hardware knowledge is not required for using this.

7. Mechine indepence

8. In this language the error are easily located.

9. The program written in this language are called source code.

10. The program written in this language are shorter in size than low level language.

3 0
4 years ago
Which of the following is NOT a factor that increases the health risks of construction workers?
Nadya [2.5K]

From all the available options, the one that would not increase the health risk for construction workers would be (D) stable, rarely changing job site environments and conditions.

High number of unskilled labors increase the likelihood that an accident might occur, while high turnover creates instability which in turn might increase the same likelihood due to increased workload while human resources seek a replacement. Multiple contractors and subcontractors mean confusions might arise and accident may likely happen if the risk is not properly managed.

8 0
3 years ago
Read 2 more answers
you can save your work in BlueGriffion using either _____ or _____. A) the format: secondary toolbar, Wysiwing view. B) The form
shusha [124]

Answer:

B

Explanation:

3 0
4 years ago
Other questions:
  • Write a method void Print(int LastNumber, int numbersPerLine) that receives two integers
    15·1 answer
  • Can't find the right year for this. (Attachment)
    6·1 answer
  • Which of the following is a beneficial reason to extract mineral resources from the earth?
    13·2 answers
  • Peter was working on a design for a magazine. He had to give his design to his team for further editing. He wanted to use a file
    8·1 answer
  • Matt is a senior developer for Cyber Protect, a company that helps secure management information systems. Matt's new task is to
    8·1 answer
  • The Blind carbon copy (Bcc) should be used when you want to __________.
    13·2 answers
  • Pixar is a company that creates a huge amount of images, audio recordings, and videos, and they need to decide what compression
    11·1 answer
  • Examples of structures that can store homogeneous data element​
    14·1 answer
  • How many 60 KB jpeg files can be stored on a 2 MB folder in your hard drive?​
    7·1 answer
  • Why isn't image display working on wacom tablet.
    8·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!