-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwingstopcouponparser.py
More file actions
817 lines (759 loc) · 43.1 KB
/
wingstopcouponparser.py
File metadata and controls
817 lines (759 loc) · 43.1 KB
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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
from bs4 import BeautifulSoup
import re
from datetime import datetime
import pytz
pacific_tz = pytz.timezone('America/Los_Angeles')
def wingstopemailparse(email):
contents = email
# Find the element containing the code
soup = BeautifulSoup(contents, 'html.parser')
# Find all <td> elements with class="main-content"
td_main_content = soup.find_all('td', class_='main-content')
td_tag = soup.find('td', class_='main-content', align='center', style='font-family: Arial, sans-serif; font-size: 17px; font-weight: bold; color: #454545; line-height: 140%;')
if td_tag:
td_content = td_tag.text.strip()
code_part = td_content.split('Code: ')[1].split()[0]
print(code_part)
#print(td_tag)
return code_part
def main():
email ='''<html lang="en" xmlns="http://www.w3.org/1999/xhtml" xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office"><head><meta name="ROBOTS" content="NOINDEX, NOFOLLOW"><meta name="referrer" content="no-referrer">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <!-- utf-8 works for most cases -->
<meta name="viewport" content="width=device-width"> <!-- Forcing initial-scale shouldn't be necessary -->
<meta http-equiv="X-UA-Compatible" content="IE=edge"> <!-- Use the latest (edge) version of IE rendering engine -->
<meta name="x-apple-disable-message-reformatting" content="width=device-width, initial-scale=1.0"> <!-- Disable auto-scale in iOS 10 Mail entirely -->
<meta name="format-detection" content="telephone=no"> <!-- Disable auto-detection/styling of telephone numbers iOS -->
<title>Wingstop</title> <!-- The title tag shows in email notifications, like Android 4.4. -->
<link rel="Shortcut Icon" type="image/x-icon" href="https://mywingstopsurvey.com/Projects/WINGS_CSI/images/emailer/ws-apple-touch.png"><!-- Add a favicon for web version -->
<!-- Web Font / @font-face : BEGIN -->
<!-- Desktop Outlook chokes on web font references and defaults to Times New Roman, so we force a safe fallback font. -->
<!-- Windows 10 ignores inline "text-decoration: none;" - note the forced xy-reset here. -->
<!--[if mso]>
<style>
body, table, tr, td, div, h1, h2, h3, h4, h5, h6, p, a {
font-family: sans-serif !important;
}
.title-black {
font-family: Arial Black, Arial, sans-serif !important;
}
.nav-item a,
.button a,
.preheader {
text-decoration: none !important;
}
ol, ul {
Margin-left: 20px !important;
}
li {
text-align:-webkit-match-parent;
display:list-item;text-indent: -1em;
}
.inherit {
text-decoration: none !important;
color: inherit !important;
}
</style>
<![endif]-->
<!-- Makes background images in 72ppi Outlook render at correct size. -->
<!--[if gte mso 9]>
<xml>
<o:OfficeDocumentSettings>
<o:AllowPNG/>
<o:PixelsPerInch>96</o:PixelsPerInch>
</o:OfficeDocumentSettings>
</xml>
<![endif]-->
<!-- CSS : BEGIN -->
<!--[if !mso]><!-->
<style type="text/css">
@media screen {
@font-face {
font-family: 'Open Sans';
font-style: normal;
font-weight: 400;
src: local('Open Sans Regular'), local('OpenSans-Regular'), url(https://fonts.gstatic.com/s/opensans/v15/mem8YaGs126MiZpBA-UFVZ0bf8pkAg.woff2) format('woff2');
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
font-family: 'Open Sans Bold Italic';
font-style: italic;
font-weight: 800;
src: local('Open Sans ExtraBold Italic'), local('OpenSans-ExtraBoldItalic'), url(https://fonts.gstatic.com/s/opensans/v15/memnYaGs126MiZpBA-UFUKW-U9hrIqOxjaPX.woff2) format('woff2');
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
.openSansReg {
font-family: 'Open Sans', Helvetica, Arial, sans-serif;
}
.openSansBoldIt {
font-family: 'Open Sans Bold Italic', Helvetica, Arial, sans-serif;
}
}
</style>
<!--<![endif]-->
<style type="text/css">
/* Remove spaces around the email design added by some email clients. */
/* Beware: It can remove the padding / Margin and add a background color to the compose a reply window. */
html,
body {
Margin: 0 auto !important;
padding: 0 !important;
height: 100% !important;
width: 100% !important;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
/* Stops email clients resizing small text. */
* {
-ms-text-size-adjust: 100%;
-webkit-text-size-adjust: 100%;
box-sizing: border-box;
}
/* Resets styles rules applied by Outlook/Hotmail adding .ExternalClass */
.ExternalClass {
width: 100%;
}
.ExternalClass,
.ExternalClass p,
.ExternalClass span,
.ExternalClass font,
.ExternalClass td,
.ExternalClass div {
mso-line-height-rule: exactly;
line-height: 100%;
}
/* Stops Outlook from adding extra spacing to tables. */
table,
td {
mso-table-lspace: 0pt !important;
mso-table-rspace: 0pt !important;
box-sizing: border-box !important;
}
/* Fixes webkit padding issue. Fix for Yahoo mail table alignment bug. Applies table-layout to the first 2 tables then removes for anything nested deeper. */
table {
border-spacing: 0 !important;
border-collapse: collapse !important;
table-layout: fixed !important;
Margin: 0 auto !important;
}
table table table {
table-layout: auto;
}
/* Uses a better rendering method when resizing images in IE. */
img {
-ms-interpolation-mode: bicubic;
}
/* A work-around for email clients meddling in triggered links. */
*[x-apple-data-detectors], /* iOS */
.x-gmail-data-detectors,/* Gmail */
.x-gmail-data-detectors *,
.aBn {
border-bottom: 0 !important;
cursor: default !important;
color: inherit !important;
text-decoration: none !important;
font-size: inherit !important;
font-family: inherit !important;
font-weight: inherit !important;
line-height: inherit !important;
}
/* Prevents Gmail from displaying download button on large, non-linked images. */
.a6S {
display: none !important;
opacity: 0.01 !important;
}
/* If the above doesn't work, add a .g-img class to any image in question. */
img.g-img + div {
display: none !important;
}
/* Prevents underlining the button text in Windows 10 */
.button-link {
text-decoration: none !important;
}
/* Thwart google's plan to turn links (address) blue */
u + #body a {
color: inherit !important;
text-decoration: none;
font-size: inherit;
font-family: inherit;
font-weight: inherit;
line-height: inherit;
}
#MessageViewBody a {
color: inherit !important;
text-decoration: none !important;
}
li {
text-align:-webkit-match-parent;
display:list-item;
}
.ios-link a {
text-decoration: underline !important;
color: inherit !important;
}
.spec-disc {
width: 0 !important;
display: none !important;
height: 0 !important;
font-size: 0 !important;
line-height: 0 !important;
}
#preheader {
font-family: sans-serif;
font-size: 1px;
color: #ffffff;
line-height: 1px;
mso-line-height-rule: exactly;
display: none;
max-width: 0px;
max-height: 0px;
opacity: 0;
overflow: hidden;
mso-hide: all;
}
/* Media Queries */
@media screen and (max-width: 639px) {
.email-container,
.email-container table {
width: 100% !important;
min-width: 100% !important;
Margin: 0 auto !important;
float: none !important; /** the align attribute on a table is similar to float on a div**/
}
.mobile-off {
width: 0 !important;
display: none !important;
height: 0 !important;
font-size: 0 !important;
line-height: 0 !important;
}
.mobile-on {
display: block !important;
height: auto !important;
line-height: inherit !important;
font-size: inherit !important;
max-height: inherit !important;
}
.spec-disc {
width: auto !important;
display: block !important;
height: auto !important;
line-height: inherit !important;
font-size: inherit !important;
max-height: inherit !important;
}
.mobile-padding {
padding: 0 20px !important;
}
.mobile-center,
.mobile-center img {
text-align: center;
Margin: 0 auto;
}
.mobile-left {
text-align: left !important;
}
.mobile-left .button {
float: none !important;
text-align: left !important;
Margin: 0 !important;
}
.mobile-img {
display: block !important;
width: 100% !important;
max-width: 100% !important;
height: auto !important;
}
.mobile-logo {
display: block !important;
width: 100% !important;
max-width: 325px !important;
height: auto !important;
text-align: center !important;
}
.email-container .button {
width: auto !important;
}
.xy-reset {
height: auto !important;
width: auto !important;
border: 0 !important;
}
.padding-reset {
padding: 0 !important;
}
.mobile-response {
text-align: left !important;
display: block;
padding: 14px 0 !important;
font-size: 18px !important;
font-weight: 400;
}
.mobile-response span {
font-size: 14px;
color: #898989;
padding-left: 20px;
}
.mobile-response-icon {
display: inline-block !important;
height: 32px !important;
width: 32px !important;
line-height: 100% !important;
font-size: 16px !important;
float: none;
}
.mobile-logo img {
width: 160px !important;
}
.line-break {
display: block !important;
}
.mobile-legal {
line-height: 120% !important;
text-transform: uppercase !important;
margin: 0 0 14px 0 !important;
}
.mobile-sub {
font-size: 18px !important;
}
.mobile-huge {
font-size: 60px !important;
}
.main-content {
text-align: left;
padding: 0 7% 15px;
background-color: #ffffff;
}
.header-top {
font-size: 29px !important;
text-align: center;
padding: 30px 7% 5px !important;
background-color: #ffffff;
}
.header-btm {
text-align: center;
padding: 0px 7% 35px !important;
background-color: #ffffff;
}
.footer-content {
text-align: left;
padding: 30px 7% 5px;
background-color: #e5e5e5;
color: #696969 !important;
}
.main-content a {
color: #696969 !important;
}
.green a {
color: #006939 !important;
}
.btn-col a {
color: #ffffff !important;
}
.nc-footer {
background-color: #373737;
}
.nc-footer .white a {
color: #696969 !important;
text-decoration: underline !important;
}
.center {
text-align: center !important;
Margin: 0 auto !important;
float: none !important;
}
.left {
text-align: left !important;
float: left !important;
padding: 0 10% !important;
}
.email-container .social-table {
width: 280px !important;
min-width: auto !important;
Margin: 0 auto !important;
float: none !important;
text-align: center !important;
}
.email-container .survey-responses-desktop {
width: 90% !important;
min-width: auto !important;
Margin: 0 auto !important;
float: none !important;
text-align: center !important;
}
.email-container .survey-responses-mobile {
min-width: auto !important;
Margin: 0 auto !important;
float: none !important;
text-align: center !important;
}
.email-container .survey-responses-mobile td {
padding: 10px 10% !important;
min-width: auto !important;
Margin: 0 auto !important;
float: none !important;
text-align: left !important;
}
.header-wrapper,
.header-container {
width: 100% !important;
min-width: 100!important;
float: none !important;
}
.header-wrapper td {
background-image: none !important;
}
.header-logo {
width: 40% !important;
}
.header-menu {
width: 40% !important;
float: right !important;
}
.mobile-spacer {
display: block !important;
width: 100% !important;
height: 20px !important;
font-size: 20px !important;
mso-line-height-rule: exactly;
line-height: 20px !important;
}
.email-container .store-locator {
max-width: 380px !important;
min-width: 300px !important;
Margin: 0 auto !important;
}
.store-locator .sl-title {
display: block !important;
width: 100% !important;
max-width: 275px !important;
height: auto !important;
Margin: 0 auto;
}
.offer-header {
font-size: 29px !important;
padding-bottom: 0px !important;
padding-right: 0px !important;
}
}
@media screen and (max-width: 320px) {
.offer-header {
font-size: 25px !important;
}
}
</style>
<!-- CSS : END -->
</head><body id="body" bgcolor="#e5e5e5" style="Margin: 0; background-color: #e5e5e5;">
<!-- START PREHEADER -->
<div id="preheader" style="font-family:sans-serif, sans-serif;font-size:1px;color:#e5e5e5;line-height:1px;mso-line-height-rule:exactly;display:none;max-width:0px;max-height:0px;opacity:0;overflow:hidden;mso-hide:all;">
Thanks for your feedback. Here’s a free fry on us. To redeem, add the regular seasoned fry to your order and then enter the coupon code on the payment page, using our mobile app or wingstop.com. Valid at participating locations only. Offer is redeemable on wingstop.com or in the Wingstop mobile app only. Offer expires 14 days after survey completion. Limit one per customer. Offer not valid with any other offers or promotions. Other restrictions may apply. Thanks for choosing Wingstop.
</div>
<!-- END PREHEADER -->
<center style="background-color: #e5e5e5;">
<!-- Preheader : BEGIN -->
<table class="mobile-off" role="presentation" bgcolor="#e5e5e5" cellspacing="0" cellpadding="0" border="0" align="center" width="550" style="Margin: auto; width: 550px; border-collapse: collapse;">
<tbody><tr>
<td align="center" style="padding: 10px 0 5px;"><table class="mobile-off" role="presentation" cellspacing="0" cellpadding="0" border="0" align="center" width="550" style="Margin: auto; width: 550px; border-collapse: collapse;">
<tbody><tr>
<td width="275" align="left" valign="top" style="padding-right: 20px; color: #696969; font-family: Arial, sans-serif; font-size: 12px; line-height: 130%;">
</td>
<td width="275" align="right" valign="top" style="color: #696969; font-family: Arial, sans-serif; font-size: 12px; line-height: 130%;"><p style="Margin: 0;"> <a href="#browser" target="_blank" style="color: #696969; text-decoration: underline;">View in browser</a> </p></td>
</tr>
</tbody></table></td>
</tr>
</tbody></table>
<!-- Preheader : END -->
<!-- Hero Image / Responsive : BEGIN -->
<table role="presentation" bgcolor="#ffffff" cellspacing="0" cellpadding="0" border="0" align="center" width="550" style="Margin: auto; width: 550px; border-collapse: collapse;" class="email-container">
<!-- Desktop Image -->
<tbody><tr>
<td align="center" class="mobile-off" style="font-family: sans-serif; font-size: 24px; font-weight: bold;">
<a href="#" target="_blank" style="color: #000000; text-decoration: none;">
<img class="mobile-off" src="https://mywingstopsurvey.com/Projects/WINGS_CSI/images/emailer/smg-wingstop-invite-header.png" alt="WINGSTOP" border="0" width="550" height="103" style="width: 550px; display: block; color: #ffffff; background-color: #006939;font-family: sans-serif; font-size: 21px;"></a>
</td>
</tr>
<!-- Mobile Image -->
<!--[if !mso]><!-->
<tr>
<td valign="top" align="center">
<div class="mobile-on" style="display: none; font-family: Arial, sans-serif; color: #ffffff; font-size: 0; height: 0; mso-line-height-rule: exactly; line-height: 0;padding: 0; mso-hide: all; text-align: center;">
<a href="#" target="_blank" style="color: #000000; text-decoration: none;">
<img class="mobile-img" src="https://mywingstopsurvey.com/Projects/WINGS_CSI/images/emailer/smg-wingstop-invite-header.png" alt="" border="0" width="0" style="display: none; color: #000000; background-color: #ffffff;">
</a>
</div>
</td>
</tr>
<!--<![endif]-->
</tbody></table>
<!-- Hero Image / Responsive : END -->
<!-- Wingstop Intro -->
<table role="presentation" bgcolor="#ededed" cellspacing="0" cellpadding="0" border="0" align="center" width="550" style="Margin: auto; width: 550px; border-collapse: collapse;" class="email-container">
<tbody>
<tr>
<td align="center">
<table role="presentation" cellspacing="0" cellpadding="0" border="0" align="center" width="550" style="Margin: auto; width: 550px; border-collapse: collapse;">
<tbody>
<tr>
<td align="left">
<!-- Left Column : BEGIN -->
<table align="left" role="presentation" cellspacing="0" cellpadding="0" border="0" width="275" style="width: 275px; border-collapse: collapse;">
<tbody>
<tr>
<td class="" align="left" style="">
<table class="" align="left" cellspacing="0" cellpadding="0" border="0" style="Margin: 0; border-collapse: collapse;">
<tbody>
<tr>
<td class="header-top" align="center" width="100%" style="padding: 40px 0px 0px 40px; font-family: Arial, sans-serif; font-size: 33px; font-weight: bold; font-style: italic; color: #000000; line-height: 100%;">
<span class="OpenSansBoldIt" style="font-weight: 800;">THANK YOU FOR YOUR FEEDBACK</span></td>
</tr>
<tr>
<td class="header-btm" align="center" width="100%" style="padding: 5px 0px 40px 40px; font-family: Arial, sans-serif; font-size: 27px; font-weight: 400; color: #000000; line-height: 100%;">
<span class="OpenSansReg" style="color: #898989; font-size: 27px; line-height: 100%;">Here’s a free fry on us.</span></td>
</tr>
</tbody>
</table></td>
</tr>
</tbody>
</table>
<!-- Left Column : END -->
<!-- Right Column : BEGIN -->
<!--[if mso]></td><td><![endif]-->
<!-- Hero Image / Responsive : BEGIN -->
<table role="presentation" bgcolor="#ffffff" cellspacing="0" cellpadding="0" border="0" align="center" width="275" style="Margin: auto; width: 275px; border-collapse: collapse;" class="email-container">
<!-- Desktop Image -->
<tbody><tr>
<td align="center" class="mobile-off" style="font-family: sans-serif; font-size: 24px; font-weight: bold;">
<a href="#" target="_blank" style="color: #000000; text-decoration: none;">
<img class="mobile-off" src="https://mywingstopsurvey.com/Projects/WINGS_CSI/images/emailer/smg-wingstop-incentive-03-bg.png" alt="" border="0" width="275" style="width: 275px; display: block; color: #ffffff; background-color: #ededed;font-family: sans-serif; font-size: 21px;"></a>
</td>
</tr>
<!-- Mobile Image -->
<!--[if !mso]><!-->
<tr>
<td valign="top" align="center">
<div class="mobile-on" style="display: none; font-family: Arial, sans-serif; color: #ffffff; font-size: 0; height: 0; mso-line-height-rule: exactly; line-height: 0;padding: 0; mso-hide: all; text-align: center;">
<a href="#" target="_blank" style="color: #000000; text-decoration: none;">
<img class="mobile-img" src="https://mywingstopsurvey.com/Projects/WINGS_CSI/images/emailer/smg-wingstop-incentive-03-mobile.png" alt="" border="0" width="0" style="display: none; color: #000000; background-color: #e5e5e5;">
</a>
</div>
</td>
</tr>
<!--<![endif]-->
</tbody></table>
<!-- Hero Image / Responsive : END -->
<!-- Right Column : END -->
</td>
</tr>
</tbody>
</table></td>
</tr>
</tbody>
</table>
<!-- Wingstop Outro -->
<!-- Horizontal Spacer : BEGIN -->
<table role="presentation" bgcolor="#ffffff" cellspacing="0" cellpadding="0" border="0" align="center" width="550" style="Margin: auto; width: 550px; border-collapse: collapse;" class="email-container">
<tbody><tr>
<td height="10" style="font-size: 20px; mso-line-height-rule: exactly; line-height: 10px;"> </td>
</tr>
</tbody></table>
<!-- Horizontal Spacer : END -->
<!-- --------------------------- -->
<!-- --------------------------- -->
<!-- Survey Body Content : BEGIN -->
<!-- --------------------------- -->
<!-- --------------------------- -->
<table role="presentation" bgcolor="#ffffff" cellspacing="0" cellpadding="0" border="0" align="center" width="550" style="Margin: auto; width: 550px; border-collapse: collapse;" class="email-container">
<tbody>
<tr>
<td class="" width="30" style="font-size: 30px; line-height: 30px;"> </td>
</tr>
<tr>
<td align="center"><table role="presentation" cellspacing="0" cellpadding="0" border="0" align="center" width="465" style="Margin: auto; width: 465px; border-collapse: collapse;">
<tbody><tr>
<td align="left"><!-- BODY GREETING -->
<table align="left" role="presentation" cellspacing="0" cellpadding="0" border="0" width="465" style="width: 465; border-collapse: collapse;">
<tbody><tr>
<td class="main-content offer-header" align="center" style="font-family: Arial, sans-serif; font-size: 32px; font-weight: bold; font-style: italic; color: #006939; line-height: 100%;">
<p style="Margin: 0;"><span class="OpenSansBoldIt" style="font-weight: 800;">FREE REGULAR‑SIZE,<br />
SEASONED FRY</span></p></td>
</tr>
</tbody></table>
</td>
</tr>
</tbody></table></td>
</tr>
<tr>
<td align="center"><table role="presentation" cellspacing="0" cellpadding="0" border="0" align="center" width="465" style="Margin: auto; width: 465px; border-collapse: collapse;">
<tbody><tr>
<td align="left"><!-- BODY INTRO -->
<table align="left" role="presentation" cellspacing="0" cellpadding="0" border="0" width="465" style="width: 465; border-collapse: collapse;">
<tbody><tr>
<td class="main-content" align="center" style="font-family: Arial, sans-serif; font-size: 16px; font-weight: normal; color: #b59958; line-height: 140%;"><p style="Margin: 0;">
with your next <span style="font-weight: bold; text-decoration: underline;">online purchase</span> of wings or tenders.</p></td>
</tr>
</tbody></table>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
<tr>
<td class="mobile-off" width="15" style="font-size: 15px; line-height: 15px;"> </td>
</tr>
<tr>
<td align="center"><table role="presentation" cellspacing="0" cellpadding="0" border="0" align="center" width="465" style="Margin: auto; width: 465px; border-collapse: collapse;">
<tbody><tr>
<td align="left"><!-- BODY INTRO -->
<table align="left" role="presentation" cellspacing="0" cellpadding="0" border="0" width="465" style="width: 465; border-collapse: collapse;">
<tbody><tr>
<td class="main-content" align="center" style="font-family: Arial, sans-serif; font-size: 16px; font-weight: normal; color: #b59958; line-height: 150%;">
<img class="mobile-on" src="https://mywingstopsurvey.com/Projects/WINGS_CSI/images/emailer/smg-wingstop-incentive-hr-top.png" alt="" border="0" width="465" style="width: 100%; display: block; color: #ffffff; font-family: sans-serif; font-size: 1px;">
</td>
</tr>
</tbody></table>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
<tr>
<td class="mobile-off" width="20" style="font-size: 20px; line-height: 20px;"> </td>
</tr>
<tr>
<td align="center"><table role="presentation" cellspacing="0" cellpadding="0" border="0" align="center" width="465" style="Margin: auto; width: 465px; border-collapse: collapse;">
<tbody><tr>
<td align="left"><!-- BODY INTRO -->
<table align="left" role="presentation" cellspacing="0" cellpadding="0" border="0" width="465" style="width: 465; border-collapse: collapse;">
<tbody><tr>
<td class="main-content green" align="center" style="font-family: Arial, sans-serif; font-size: 17px; font-weight: bold; color: #006939; line-height: 140%;"><p style="Margin: 0;">
To redeem, add the regular seasoned fry to your order and then enter the coupon code on the payment page when you order using our mobile app or <a href="http://www.wingstop.com" style="color: #006939; text-decoration: none;">wingstop.com.</a></p></td>
</tr>
</tbody></table>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
<tr>
<td class="mobile-off" width="15" style="font-size: 15px; line-height: 15px;"> </td>
</tr>
<tr>
<td align="center"><table role="presentation" cellspacing="0" cellpadding="0" border="0" align="center" width="465" style="Margin: auto; width: 465px; border-collapse: collapse;">
<tbody><tr>
<td align="left"><!-- BODY INTRO -->
<table align="left" role="presentation" cellspacing="0" cellpadding="0" border="0" width="465" style="width: 465; border-collapse: collapse;">
<tbody><tr>
<td class="main-content" align="center" style="font-family: Arial, sans-serif; font-size: 14px; font-weight: 300; color: #5c5c5c; line-height: 140%;"><p style="Margin: 0;">
Valid at participating locations only. <span style="font-weight: bold; text-decoration: underline;">Offer is redeemable on </span><a href="http://www.wingstop.com" target="_blank" style="color: #5c5c5c !important; font-weight: bold; text-decoration: underline;"><span style="color: #5c5c5c; font-weight: bold; text-decoration: underline;">wingstop.com</span></a><span style="font-weight: bold; text-decoration: underline;"> or in the Wingstop mobile app only.</span> Offer expires 14 days after survey completion. Limit one per customer. Offer not valid with any other offers or promotions. Other restrictions may apply.</p></td>
</tr>
</tbody></table>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
<tr>
<td class="mobile-off" width="15" style="font-size: 15px; line-height: 15px;"> </td>
</tr>
<tr>
<td align="center"><table role="presentation" cellspacing="0" cellpadding="0" border="0" align="center" width="465" style="Margin: auto; width: 465px; border-collapse: collapse;">
<tbody><tr>
<td align="left"><!-- BODY INTRO -->
<table align="left" role="presentation" cellspacing="0" cellpadding="0" border="0" width="465" style="width: 465; border-collapse: collapse;">
<tbody><tr>
<td class="main-content" align="center" style="font-family: Arial, sans-serif; font-size: 17px; font-weight: bold; color: #454545; line-height: 140%;"><p style="Margin: 0;">
Code: DS2403D7DTMWVHWZV4 <br style="display: none;" class="mobile-on">Expires 14 days after issue</p></td>
</tr>
</tbody></table>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
<tr>
<td class="mobile-off" width="15" style="font-size: 15px; line-height: 15px;"> </td>
</tr>
<tr>
<td align="center"><table role="presentation" cellspacing="0" cellpadding="0" border="0" align="center" width="465" style="Margin: auto; width: 465px; border-collapse: collapse;">
<tbody><tr>
<td align="left"><!-- BODY INTRO -->
<table align="left" role="presentation" cellspacing="0" cellpadding="0" border="0" width="465" style="width: 465; border-collapse: collapse;">
<tbody><tr>
<td class="main-content" align="center" style="font-family: Arial, sans-serif; font-size: 16px; font-weight: normal; color: #b59958; line-height: 150%;">
<img class="mobile-off" src="https://mywingstopsurvey.com/Projects/WINGS_CSI/images/emailer/smg-wingstop-incentive-hr-btm.png" alt="WHERE FLAVOR GETS ITS WINGS" border="0" width="465" style="width: 100%; display: block; color: #000000; font-family: Helvetica, Arial, sans-serif; font-weight: bold; font-size: 14px !important;">
</td>
</tr>
<!-- Mobile Image -->
<!--[if !mso]><!-->
<tr>
<td valign="top" align="center">
<div class="mobile-on" style="display: none; font-family: Arial, sans-serif; color: #ffffff; font-size: 0; height: 0; mso-line-height-rule: exactly; line-height: 0;padding: 0; mso-hide: all; text-align: center;">
<img class="mobile-img" src="https://mywingstopsurvey.com/Projects/WINGS_CSI/images/emailer/smg-wingstop-incentive-hr-btm-mobile.png" alt="WHERE FLAVOR GETS ITS WINGS" border="0" width="0" style="display: none; color: #000000; background-color: #ffffff; padding: 0 7%; font-family: Arial, Helvetica, sans-serif; font-weight: bold;">
</div>
</td>
</tr>
<!--<![endif]-->
</tbody></table>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody></table>
<!-- Survey Body Content : END -->
<!-- Horizontal Spacer : BEGIN -->
<table role="presentation" bgcolor="#ffffff" cellspacing="0" cellpadding="0" border="0" align="center" width="550" style="Margin: auto; width: 550px; border-collapse: collapse;" class="email-container">
<tbody><tr>
<td height="30" style="font-size: 30px; mso-line-height-rule: exactly; line-height: 30px;"> </td>
</tr>
</tbody></table>
<!-- Horizontal Spacer : END -->
<!-- PJ Boiler : Begin -->
<table role="presentation" bgcolor="#e5e5e5" cellspacing="0" cellpadding="0" border="0" align="center" width="550" style="Margin: auto; width: 550px; border-collapse: collapse;" class="email-container">
<tbody>
<tr>
<td class="mobile-off" width="30" style="font-size: 30px; line-height: 30px;"> </td>
</tr>
<tr>
<td align="center"><table role="presentation" cellspacing="0" cellpadding="0" border="0" align="center" width="550" style="Margin: auto; width: 550px; border-collapse: collapse;">
<tbody><tr>
<td align="left" class="footer-content">
<table align="left" role="presentation" cellspacing="0" cellpadding="0" border="0" width="550" style="width: 550; border-collapse: collapse;">
<tbody><tr>
<td class="ios-link" align="left" style="font-family: Arial, sans-serif; font-size: 12px; font-weight: normal; color: #5c5c5c; line-height: 150%;"><p style="Margin: 0;">
This is an unmonitored email box. Please do not reply to this email. This email was sent on behalf of Wingstop Restaurants, Inc. by SMG. ©2019 Service Management Group, Inc. All rights reserved. 1737 McGee Street, Kansas City, MO 64108. You are receiving this email because of your recent survey completion. <a href="http://www.smg.com" target="_blank" style="color: #696969; text-decoration: underline;">Click here to unsubscribe.</a> Please note that you will continue to receive offers, promotions and updates from Wingstop if you unsubscribe from this survey reward email.
</p></td>
</tr><tr>
<td class="mobile-spacer" style="height: 0; width: 0; font-size: 0; line-height: 0;"> </td>
</tr>
</tbody></table>
</td>
</tr>
</tbody></table></td>
</tr>
<tr>
<td class="mobile-off" width="30" style="font-size: 30px; line-height: 30px;"> </td>
</tr>
</tbody></table>
<!-- PJ Boiler : End -->
<!-- Gmail Fix : START (Forces Desktop view on Android and Gmail Apps where responsive design is not supported.) -->
<table class="mobile-off" cellpadding="0" cellspacing="0" border="0" align="center" width="550" style="width: 550px; Margin: 0; border-collapse: collapse;">
<tbody><tr>
<td class="mobile-off" height="1" style="mso-line-height-rule: exactly; line-height: 1px; min-width: 550px;">
<img class="mobile-off" src="https://mywingstopsurvey.com/Projects/WINGS_CSI/images/emailer/itsy-spacer.gif" alt="" width="550" height="1" style="display: block; max-height: 1px; min-height: 1px; min-width: 550px; width: 550px;">
</td>
</tr>
</tbody></table>
<!-- Gmail Fix : END -->
</center>
<img src="https://mywingstopsurvey.com/Projects/WINGS_CSI/images/emailer/itsy-spacer.gif" width="1" height="1">
</body></html>'''
code = wingstopemailparse(email)
print(code)
if __name__ == "__main__":
main()