{ "info": { "author": "Abdelrahman Eid", "author_email": "hot3eed@gmail.com", "bugtrack_url": null, "classifiers": [], "description": "# ihatefacebook\nihatefacebok is a Python script that allows you to get notified by email whenever a Facebook page adds a new event, \nwithout having to interact with Facebook yourself. The script runs by default every time your machine starts up \n(after login), but you can also set it up with the `run` command as a `cron` job. Currently supports macOS only.\n\n\n## Installation\n`$ pip install ihatefacebook`\n\n\n## Usage\n```\n$ ihatefacebook COMMAND [OPTION] [ARGS]...\n\nOptions:\n --help Show this message and exit.\n\nCommands:\n config Add or list email and SMTP server configurations\n page Add, remove or list pages to be scraped for events\n run Run scraping utility with currently set configurations and pages\n```\n#### Subcommands\n```\n$ ihatefacebook config OPTION [ARGS]\n\n Add or list email and SMTP server configurations\n\nOptions:\n -a, --add key=value Add user.email, smtp.host, smtp.port configurations, with\n the format key=val\n -p, --password Set password for the user.email added using the -a option\n -l, --list List currently set configurations\n --help Show this message and exit.\n```\n```\n$ ihatefacebook page OPTION [ARGS]\n\n Add, remove or list pages to be scraped for events\n\nOptions:\n -a, --add PAGE_ID Add a page to the list of pages to be scraped, using its\n Facebook page ID\n -r, --remove PAGE_ID Remove a page using its Facebook page ID\n -l, --list List all pages from the list of pages to be scraped\n --help Show this message and exit.\n```\n\n\n## Requirements\n[pip](https://pypi.org/project/pip/) installs needed dependencies but you'll need to have these on your machine as well:\n* Google Chrome\n* [ChromeDriver](http://chromedriver.chromium.org/), make sure it's the version corresponding to that of the browser, \nand have it located in `/usr/local/bin/`.\n\n\n## Notes\n* The scraping code could break anytime Facebook change their DOM, if you notice this before I update the code, \nplease let me know.\n* If you're using Gmail as your SMTP server, you'll need to turn on [less secure app access](https://support.google.com/a/answer/6260879?hl=en).\n* The script uses [launchd](https://developer.apple.com/library/archive/documentation/MacOSX/Conceptual/BPSystemStartup/Chapters/CreatingLaunchdJobs.html) \non macOS for launching every time your machine starts up, `ihatefacebook` calls `launchd` and adds needed configuration\nat installation. However, you wanna check the status of the script in `launchd` to make sure it'll work properly. This \ncan be done using `launchctl list | grep ihatefacebook` (or use [LaunchControl](https://www.soma-zone.com/LaunchControl/)), \n0 means OK. Check `~/Library/Logs/com.hot3eed.ihatefacebook/log.error` \n(or use [Console](https://support.apple.com/en-eg/guide/console/welcome/mac)) for debugging. All this hard manual labor\n could be automated in a future update.\n\n\n## TODO\n* Add Linux support.\n* Add Windows support.\n\n\n## License\n[Apache License 2.0](https://github.com/hot3eed/ihatefacebook/blob/master/LICENSE)", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/hot3eed/ihatefacebook", "keywords": "", "license": "Apache License 2.0", "maintainer": "", "maintainer_email": "", "name": "ihatefacebook", "package_url": "https://pypi.org/project/ihatefacebook/", "platform": "", "project_url": "https://pypi.org/project/ihatefacebook/", "project_urls": { "Homepage": "https://github.com/hot3eed/ihatefacebook" }, "release_url": "https://pypi.org/project/ihatefacebook/0.5/", "requires_dist": null, "requires_python": ">=3.3", "summary": "Get notified by email whenever a Facebook page adds a new event.", "version": "0.5" }, "last_serial": 5268325, "releases": { "0.5": [ { "comment_text": "", "digests": { "md5": "9befff170d6d9f50220e193b6b04b1b1", "sha256": "cb0bbcfde99fddf2f38b2d2d5684886d419ea52b9f05c2c46b1102bd698b39be" }, "downloads": -1, "filename": "ihatefacebook~-0.5.tar.gz", "has_sig": false, "md5_digest": "9befff170d6d9f50220e193b6b04b1b1", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.3", "size": 9640, "upload_time": "2019-05-14T16:19:30", "url": "https://files.pythonhosted.org/packages/21/58/8546ca9316293f1f18c1c9a3cc5d83aaa144dc415ccf807c6c9bc6695f02/ihatefacebook~-0.5.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "9befff170d6d9f50220e193b6b04b1b1", "sha256": "cb0bbcfde99fddf2f38b2d2d5684886d419ea52b9f05c2c46b1102bd698b39be" }, "downloads": -1, "filename": "ihatefacebook~-0.5.tar.gz", "has_sig": false, "md5_digest": "9befff170d6d9f50220e193b6b04b1b1", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.3", "size": 9640, "upload_time": "2019-05-14T16:19:30", "url": "https://files.pythonhosted.org/packages/21/58/8546ca9316293f1f18c1c9a3cc5d83aaa144dc415ccf807c6c9bc6695f02/ihatefacebook~-0.5.tar.gz" } ] }