-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
git: Merge branch 'develop' of https://github.com/nooblag/pddgnimi in…
…to develop
- Loading branch information
Showing
2 changed files
with
8 additions
and
24 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,12 @@ | |
|
||
### "Put DuckDuckGo News In My Inbox" | ||
|
||
This thing should scrape news articles from [DuckDuckGo](https://duckduckgo.com/) for a search query and send the output to an email. It's intended to be invoked as a cronjob or something so as to get hits on a news topic once a day. | ||
This thing should scrape news articles from [DuckDuckGo](https://duckduckgo.com/) for a search query in Australia and send the output to an email. It's intended to be invoked as a cronjob or something so as to get hits on a news topic once a day. | ||
|
||
For example, here's an e-mail alert for "celebrity news": | ||
|
||
![Screenshot from 2022-01-10 22-07-24](https://user-images.githubusercontent.com/1122344/148756507-2765c8dc-13a4-48d7-9c5f-8d66c7e093f9.png) | ||
|
||
|
||
**Under development!** | ||
|
||
|
@@ -35,21 +40,11 @@ wget https://github.com/mozilla/geckodriver/releases/download/v0.30.0/geckodrive | |
sudo tar -xf geckodriver-v0.30.0-linux64.tar.gz --directory /usr/bin/ | ||
``` | ||
|
||
### Mail Server Settings | ||
|
||
Open the `emailSettings.py` settings file and edit it to specify the SMTP server to use to send email alerts with. | ||
|
||
Should be something like: | ||
|
||
```python | ||
mailserverHost = 'smtp.somewhere.com' | ||
mailserverPort = '465' | ||
mailserverUser = '[email protected]' | ||
mailserverPass = 'PasswordGoesHere' | ||
``` | ||
|
||
## Usage | ||
|
||
**pddgnimi** is intended to be invoked from the command line, as follows: | ||
|
||
``` | ||
python3 pddgnimi.py "foo bar" [email protected] | ||
``` | ||
|