๐Ÿ“ฆ denolfe / JeFit-Scraper

๐Ÿ“„ README.md ยท 77 lines
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77JeFit-Scraper
=============

Scrapes JeFit account for workouts and puts them into sqlite database

## Usage

Edit end of scraper.rb for desired timeframe

`scraper.get_data(start_month=1, end_month=12, year)`

`ruby scraper.rb username password`

## Output

File: workout.sqlite3

Command Line:
```
Log created: 2013-06-15

        Dumbbell Bench Press
                Set 1, Reps: 12, Lbs: 40
                Set 2, Reps: 12, Lbs: 45
                Set 3, Reps: 8, Lbs: 50

        Dumbbell Shoulder Press
                Set 1, Reps: 8, Lbs: 30
                Set 2, Reps: 6, Lbs: 35
                Set 3, Reps: 5, Lbs: 40

        Dumbbell Incline Bench Press
                Set 1, Reps: 8, Lbs: 40
                Set 2, Reps: 8, Lbs: 45
                Set 3, Reps: 4, Lbs: 50

        Dumbbell Arnold Press
                Set 1, Reps: 8, Lbs: 25
                Set 2, Reps: 5, Lbs: 30
                Set 3, Reps: 6, Lbs: 30

Log created: 2013-06-19

        Alternate Seated Dumbbell Curl
                Set 1, Reps: 12, Lbs: 20
                Set 2, Reps: 10, Lbs: 25
                Set 3, Reps: 7, Lbs: 30

        Bent Over Two Dumbbell Row
                Set 1, Reps: 12, Lbs: 20
                Set 2, Reps: 8, Lbs: 25
                Set 3, Reps: 8, Lbs: 30

        Alternate Incline Dumbbell Curl
                Set 1, Reps: 8, Lbs: 20
                Set 2, Reps: 8, Lbs: 25
                Set 3, Reps: 7, Lbs: 30

        Palms In Bent Over Dumbbell Row
                Set 1, Reps: 12, Lbs: 25
                Set 2, Reps: 10, Lbs: 30
                Set 3, Reps: 8, Lbs: 35

        Alternate Seated Hammer Curl
                Set 1, Reps: 8, Lbs: 25
                Set 2, Reps: 8, Lbs: 30
                Set 3, Reps: 8, Lbs: 25
```

## To Do

- Add tests to verify functionality
- Add ability to scrape public profiles without entering credentials
- CSV output
- Thor Toolkit?