=========
Introduction
------------
WWScraper is a module designed to scrape the mobile WeightWatchers website.
The following functionality is supported:
Getting current PointsTracker data for any date
Searching the WW Database for foods
Quick Adding foods to the current day's tracker
Adding foods from the WW Database to the current day's tracker.
Note: Food adds from the database only support their default unit of measure.
This module is in no way affiliated with WeightWatchers International, and is
not guaranteed to continue to work in the event of changes to their mobile site.
It requires you have a valid, paid eTools account in order to access this data.
History
-------
I designed this module as I was not happy with the WW website requiring me to
load up a bulky flash app just to search for foods, and the mobile interface
is quite clumsy even in a full blown browser. Being a nerd who spend a lot
of time at the command line, I wanted a way to push points up to the site
without having to fire up a browser.
Requirements
------------
mechanize
BeautifulSoup
Basic Usage
-----------
from WWScraper import WWScrape
# Instantiate the object, and connect
ww_site = WWScrape()
ww_site.connect('wwmobileuser','wwmobilepass')
# Quick add a food
ww_site.quick_add_food('Tacos',4,'Morning')
# Do a food search
potato_data = ww_site.food_search('potato')
# Display our results (provided in tuples)
for result in potato_data:
print "Name: %s, ID: %s, Serving: %s, Points: %s" % result
# Add a food (assuming food_id has the id returned from a search)
ww_site.add_food(food_id,'Anytime')
# Add a food, but we ate twice the default amount listed
ww_site.add_food(food_id,'Anytime',multiplier=2)
Metadata
Release files for WWScraper 0.21
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| WWScraper-0.21.tar.gz | 5.6 kB | Without provenance | Details for WWScraper-0.21.tar.gz |
Release files / WWScraper-0.21.tar.gz
| Download URL | WWScraper-0.21.tar.gz |
|---|---|
| Size | 5.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
585a2f67760625d1e13de63c898f58f0e0776ee7d869d3af5421ead636d287ef
|
|
BLAKE2b-256 checksum How to use checksums |
7e935e4a629daeec040abd48508b9f41c572c384d78c8d36e4a8bdc2f7473ef9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for WWScraper 0.21
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.