Skip to content

Commit

Permalink
Update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
Denis Pitkov committed Feb 26, 2023
1 parent 17d0132 commit 31dc3a7
Showing 1 changed file with 54 additions and 15 deletions.
69 changes: 54 additions & 15 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,12 @@
### Services for temporary mail
-[Inbox Kitten](https://inboxkitten.com/)
-[TempMail +](https://tempmail.plus/)
-[TempMail.lol](https://tempmail.lol/)
-[GmailNator](https://www.gmailnator.com/) *(Temp gmail email)*
### Services for receiving SMS
-[Receive Sms Free](https://receive-sms-free.cc/)
### Services for fake data
-[TextReverse](https://www.textreverse.com/frontend/fakeAddressGenerator)
-[Randomuser](https://randomuser.me)
### Services for proxy list
-[Proxy List](https://www.proxy-list.download/)
-[SSL Proxies](https://www.sslproxies.org/)
Expand All @@ -49,10 +50,10 @@
-[GeoNode](https://geonode.com/free-proxy-list/)
-[OpenProxy](https://openproxy.space/list)
### Services for solving captcha
-[CloudMersive](https://cloudmersive.com/ocr-api)
-[Optiic](https://optiic.dev/)

## Getting started
This library tested with Python 3.6-3.10 and Pypy 3. There are two ways to install the library:
This library tested with Python 3.6+ and Pypy 3. There are two ways to install the library:
- Installation using pip (a Python package manager):
```
$ pip install account-generator-helper
Expand Down Expand Up @@ -86,7 +87,7 @@ print('Mail :', mail.set_email('test-mail')) # Mail : [email protected]


for _letter in mail.get_inbox():
print('Letter :', _letter) # Letter : <Letter ..>
print('Letter :', _letter) # Letter : (Letter ..)
print('Letter content :', _letter.letter) # Letter content : ...


Expand Down Expand Up @@ -123,7 +124,7 @@ print('Mail :', mail.set_email('test-mail', TempMailPlusDomains.MAILTO_PLUS)) #


for _letter in mail.get_inbox():
print('Letter :', _letter) # Letter : <Letter ...>
print('Letter :', _letter) # Letter : (Letter ...)
print('Letter content :', _letter.letter) # Letter content : ...


Expand Down Expand Up @@ -160,7 +161,44 @@ print('Mail :', mail.set_email('[email protected]')) # Mail : j


for _letter in mail.get_inbox():
print('Letter :', _letter) # Letter : <Letter ..>
print('Letter :', _letter) # Letter : (Letter ..)
print('Letter content :', _letter.letter) # Letter content : ...


@mail.letter_handler()
def new_mail(letter):
print('New mail :', letter)


@mail.letter_handler(from_email='[email protected]')
def test_from(letter):
print('Test from :', letter)


@mail.letter_handler(re_subject='.* test .*')
def test_re_subject(letter):
print('Test re subject :', letter)


@mail.letter_handler(from_email='[email protected]', subject='Test letter')
def test_handler(letter):
print('Test handler :', letter)


mail.poling()
```

```python
# TempMailLol
from account_generator_helper import TempMailLol


mail = TempMailLol()
print('Mail :', mail.get_email()) # Mail : [email protected]


for _letter in mail.get_inbox():
print('Letter :', _letter) # Letter : (Letter ..)
print('Letter content :', _letter.letter) # Letter content : ...


Expand Down Expand Up @@ -195,13 +233,12 @@ from account_generator_helper import ReceiveSms, Counties

phone = ReceiveSms()

country = phone.get_country(Counties.UKRAINE)
country = phone.get_country(Counties.POLAND)
phone = country.get_number()
print('Phone number :', phone.number) # Phone number : 380665327743

for message in phone.get_last_messages():
print(message) # <Message ...>

print(message) # (Message ...)
```

### Generate data
Expand All @@ -210,8 +247,8 @@ for message in phone.get_last_messages():
from account_generator_helper import generate_person, generate_persons


print(generate_person()) # Person(gender='female', nam...
print(generate_persons(10)) # [Person(gender='female', nam...]
print(generate_person()) # Person(gender='female', nam...)
print(generate_persons(10)) # [Person(gender='female', nam...), Person(gender='female', nam...), ...]
```

```python
Expand All @@ -236,12 +273,14 @@ print(get_password(upper_case=False, numbers=False, special_symbols=False)) # m
# Proxy parsing
from account_generator_helper import Proxies


proxies = Proxies()

proxies.parse_proxies()

print(proxies) # <Proxies proxies_count=11572>
print(proxies) # (Proxies proxies_count=11572)

print(proxies.pop()) # <Proxy proxy_type=HTTP address=203.23.106.209 port=80 country=Counties.CYPRUS>
print(proxies.pop()) # (Proxy proxy_type=HTTP address=203.23.106.209 port=80 country=Counties.CYPRUS)

print(proxies.pop().strfproxy()) # http://203.32.121.187:80
```
Expand All @@ -251,8 +290,8 @@ print(proxies.pop().strfproxy()) # http://203.32.121.187:80
# Solving regular text captcha
from account_generator_helper import CaptchaSolver


captcha_solver = CaptchaSolver()
# Get api key from https://optiic.dev/
captcha_solver = CaptchaSolver('11r6wjas2zTHLTgdWvEjaap1xq7m7111ufUNFas1fwCS')

print('Captcha 1 result :', captcha_solver.solve(open('images/captcha_1.png', 'rb'))) # 97823C

Expand Down

0 comments on commit 31dc3a7

Please sign in to comment.