Skip to content

Commit 96edc6b

Browse files
committed
Adding Beautifull Soup as dependencie[we will use this to fetch datas] + Update README + the api source code
1 parent 6643bd2 commit 96edc6b

File tree

7 files changed

+35
-19
lines changed

7 files changed

+35
-19
lines changed

README.md

Lines changed: 25 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# <>PyToMe
44

55
## Introduction
6-
We know how it's sometimes realy complicated for a developper in Cameroon to get hire by a companie for a full time job, or just get Hire for a single project, i created this project to resolve that problem (For Python developper....), it's a really simple app, fetching and notify suscribers, PyToMe fetch jobs around multiple websites(Only PYTHON's one) and notify every developper that subscribe to it.
6+
We know how it's sometimes realy complicated for a developper in Cameroon to get hire by a companie for a full time job, or just get Hire for a single project, i created this project to resolve that problem (For Python developpers....), it's a really simple app, fetching and notify suscribers, PyToMe fetch jobs around multiple websites(Only PYTHON's one) and notify every developper that subscribe to it.
77

88
## How it's works
99
PyToMe have a list of website where it wil fetch data(jobs/projects) and will notify developper with a frequency that will be configure.
@@ -12,21 +12,36 @@ PyToMe have a list of website where it wil fetch data(jobs/projects) and will no
1212
- First Suscribe to [PyToMe](https://github.com/pytome)
1313
- Enjoy ;-)
1414

15+
## How to install it locally
16+
* git clone https://github.com/Python-Cameroun/pytome
17+
* cd to/the/project/
18+
* Hit theese commands below.
19+
```python
20+
# this will install requests and BeautifullSoup
21+
pip install -r requirements.txt
22+
23+
# Launch it
24+
cd api/ && python app.py
25+
```
26+
1527
## TODO
16-
- [-] The Python Job(Collecting jobs all over website every day.)
17-
- [-] The Python Mailing system to notify all developpers subscribed on this app
18-
- [-] The Web pae presentation of PyToMe
19-
- [-] The Python Config (For personnalize notifications)
20-
- [-] The Type (Remote Jobs, full time, etc...).
21-
- [-] The country / city.
22-
- [-] The number of notifications.
23-
- [-] The delay from notifications.
28+
- [ In progress... ] The Python Job (Collecting/Fetching jobs all over website with frequency.)
29+
- [ - ] The Mailing system to notify all developpers subscribed on this app.
30+
- [OK] The Web page where to suscribe to PyToMe.
31+
- [ - ] The Python Config (For personnalize notifications)
32+
- [ - ] The Type (Remote Jobs, full time, etc...).
33+
- [ - ] The country / city.
34+
- [ - ] The number of notifications.
35+
- [ - ] The delay from notifications.
36+
37+
## Rendering
38+
<img src="assets/img/rendu.png" />
2439

2540
## Author
2641
[Sanix-darker](https://github.com/sanix-darker)
2742

2843
## Contributors
29-
44+
...
3045

3146
## Organization
3247
[Python Cameroon](https://github.com/python-cameroun)

api/app.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,10 +54,10 @@
5454
# https://www.technojobs.co.uk/python-jobs
5555
# https://www.pythonjobshq.com/
5656

57-
import re
5857
import requests
58+
from bs4 import BeautifulSoup
5959

6060

6161
def fetch_fromIT(url, schema):
62-
result = ""
63-
return result
62+
soup = BeautifulSoup('\n'.join(requests.get(url).text.splitlines()[1:10]), 'html.parser')
63+
return [i.get('href') for i in soup.find_all(schema)]

api/requirement.txt

Lines changed: 0 additions & 1 deletion
This file was deleted.

api/requirements.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
requests==2.13.0
2+
BeautifulSoup

assets/img/letter.png

2.47 KB
Loading

assets/img/rendu.png

22.2 KB
Loading

index.html

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<link rel='stylesheet' href='https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.7/css/bootstrap.min.css'>
77
<link rel='stylesheet' href='http://cdn.muicss.com/mui-0.9.39/css/mui.min.css'>
88
<link rel='stylesheet' href='https://cdnjs.cloudflare.com/ajax/libs/animate.css/3.5.2/animate.min.css'>
9-
<link rel="stylesheet" href="css/style.css">
9+
<link rel="stylesheet" href="assets/css/style.css">
1010

1111
</head>
1212
<body>
@@ -17,7 +17,7 @@
1717
<div class="col-md-8 col-md-offset-2">
1818
<div class="panel mui-panel mui--z4 animated fadeInRight">
1919
<div class="icon-wrapper">
20-
<img class="mail" src="https://s15.postimg.cc/aqplevuwb/letter.png"/>
20+
<img class="mail" src="assets/img/letter.png"/>
2121
</div>
2222
<h1>PytoMe</h1>
2323
<p>Sign up to be notify on all python jobs arounf the world.<br>
@@ -31,8 +31,8 @@ <h1>PytoMe</h1>
3131
</div>
3232
</div>
3333

34-
<script src='https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js'></script>
35-
<script src='https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.7/js/bootstrap.min.js'></script>
36-
<script src='https://cdnjs.cloudflare.com/ajax/libs/muicss/0.9.39/js/mui.min.js'></script>
34+
<script src='https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js'></script>
35+
<script src='https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.7/js/bootstrap.min.js'></script>
36+
<script src='https://cdnjs.cloudflare.com/ajax/libs/muicss/0.9.39/js/mui.min.js'></script>
3737
</body>
3838
</html>

0 commit comments

Comments
 (0)