https://github.com/paganini2008/favorites
A small and exquisite bookmark management application.
https://github.com/paganini2008/favorites
beautifulsoup4 elasticsearch flask pymysql python3 requests
Last synced: 9 months ago
JSON representation
A small and exquisite bookmark management application.
- Host: GitHub
- URL: https://github.com/paganini2008/favorites
- Owner: paganini2008
- Created: 2022-08-18T01:45:24.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2022-08-18T10:37:49.000Z (almost 4 years ago)
- Last Synced: 2025-01-14T08:14:15.631Z (over 1 year ago)
- Topics: beautifulsoup4, elasticsearch, flask, pymysql, python3, requests
- Language: Python
- Homepage:
- Size: 10.7 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# favorites
A small and exquisite bookmark management application. You can export your favorite web pages from bookmark management of any browser and put it in a directory monitored by the application. The file watchdog will load the file and output all links to Mysql database, finally creating indexes by Elasticsearch.
## Tech Stack
* Python3
* Flask
* Requests
* BeautifulSoup
* Pymysql
* ElasticSearch
## How to Work?
``` mermaid
flowchart TD
u("BookMark Management")-->|"Export as a File"|a("BookMark File")
a("BookMark File")-->|"Save"|b("Directory")
b("Directory")-->c("Watchdog")
c("Watchdog")-->|"Change Notify"|d("FileChangeEventHandler")
d("FileChangeEventHandler")-->|"Analyse File and Save Link"|e("Mysql")
e("Mysql")-->|"Create Index"|f("ElasticSearch")
```
## Run
``` log
favorites
├── README.md
├── test
├── config
│ └── fav.ini
├── templates
│ ├── hello.html
│ ├── layout.html
│ ├── result.html
│ └── search.html
├── common.py
├── es.py
├── fav_exp.py
└── web.py
```
* **Start directory watchdog:**
```
python fav_exp.py
```
* **Start web appalication to search by keyword:**
```
python web.py
```