-
Notifications
You must be signed in to change notification settings - Fork 451
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: add fastcompany custom parser #191
Conversation
53d11ca
to
e98d88b
Compare
e98d88b
to
68d0b45
Compare
🤖 Automated Parsing Preview 🤖Commit: Original Article | HTML Fixture | Parsed Content Preview Parsed JSON{
"title": "The Only Five Email Folders Your Inbox Will Ever Need",
"content": "<div><article class=\"post__article \"><div><p>For years, my approach to email was like slaying a hydra. For every email I deleted, two more landed in my inbox.</p></div><div><p>Part of the problem, I knew, was the nature of my work. My team stands between two major organizations within my company, making collaboration crucial, however inefficient it was in practice. So not only did I put up with this mess, I was actually complicit in letting it worsen. I saved everything. I thought most messages addressed directly to me needed my response. I was wrong.</p><p>Looking back, I didn’t have the discipline and discernment to really manage my email habits. The system I use now isn’t a product of my own invention. My best friend works for a major consulting firm, and I was grateful when he sketched out the rough strategy his firm shares with consultants to help them manage their own unruly inboxes. The technique comes with all the beauty and simplicity you’d expect from a firm charging seven figures per engagement–and it relies on a folder system you can tally on one hand.</p><h4><a>Ditch Subjects For Deadlines</a></h4><p>The biggest mistake, in my experience, is creating folders based on topics. Emails, like meetings, rarely stay on track.</p><figure class=\"inline-large inline inline column-container\">\n<div class=\"image-wrapper\"><img alt=\"\" width=\"511\" class=\"lazyload\" src=\"https://images.fastcompany.net/image/upload/w_596,c_limit,q_auto:best,f_auto/fc/3067012-inline-i-the-only-five-email-folders-your-inbox-will-ever-need.jpg\"></div>\n<div class=\"caption-wrapper\"><figcaption>My newly streamlined, uncluttered inbox has a grand total of five folders.</figcaption></div>\n</figure><p>Where do you file an important update that covers two unrelated projects? What do you do with that same email if it requires a response?</p><p>The second mistake I’ve seen, and personally committed, is trying to use an inbox as a to-do list. There simply aren’t enough hours in the workday to respond to the emails that pile up there. Over time, precisely <em>because</em> of the way I was “organizing” my inbox, emails that I should’ve responded to got pushed further and further down, and were eventually forgotten.</p><p>The system that saved my sanity requires only five folders:</p></div><div><ol>\n<li><span><strong>Inbox:</strong> the inbox is a holding pen. Emails shouldn’t stay here any longer than it takes for you to file them into another folder. The exception to this rule is when you respond <em>immediately</em> and are waiting for an <em>immediate</em> response.</span></li>\n<li><span><strong>Today:</strong> Everything that requires a response today.</span></li>\n<li><span><strong>This Week:</strong> Everything that requires a response before the end of the week.</span></li>\n<li><span><strong>This Month/Quarter:</strong> – Everything that needs a longer-term response. Depending on your role, you many need a monthly folder. Others can operate on a quarterly basis.</span></li>\n<li><span><strong>FYI:</strong> Most items I receive are informational. If I think I may need to reference an email again, I’ll save it to this folder.</span></li>\n</ol><h4><a>Show No Mercy</a></h4><p>Email will quickly become your master if you don’t take charge. So once you embrace this system, you need to adhere to it mercilessly–there are no half measures. We tend to get more lax about newly adopted habits as their newness rubs off. But I’ve actually gotten better over time at sticking to my five-folder rule. I’m ruthless about deleting emails that don’t require my attention. Here are five tips that make the system more effective.</p><aside class=\"pullquote\"><q>Don’t confuse having an opinion with leadership, or mounting email volume with weightier job duties.</q></aside><p>First, I <a href=\"https://www.fastcompany.com/3062946/your-most-productive-self/this-100-year-old-to-do-list-hack-still-works-like-a-charm\">keep an actual to-do list</a>. Occasionally I’ll add items to that list based on the content of an email that <em>didn’t</em> require a response. For example, if an email thread results in deciding that we need to schedule a meeting, I’ll make a note to prep my boss with some information from those emails–but I’ll delete them once I’ve finished that prep session.</p><p>Second, don’t exaggerate your own importance. Too many people want to have a say in too many things. We all have leadership aspirations–and that’s generally a good thing. One way to grow your influence is indeed by taking on more responsibility. But don’t confuse having an opinion with leadership, or mounting email volume with weightier job duties. If you don’t need to respond, put it in the “FYI” folder or delete it–it’s one or the other. And if you stay on “cc,” you’ll get the latest thread when everyone responds, so there’s no need to worry.</p><p>Third, don’t exaggerate the importance of others. A lot of people <em>want</em> responses today. I’m one of them. But I’ve learned that I don’t always <em>need</em> or <em>deserve</em> a response today. This is especially true if you have obligations that directly impact customers or your company’s financial health. Don’t put emails in the “Today” folder that don’t belong there; if it’s in the “Today” folder you <em>have</em> to respond to it that day, no exceptions.</p><p>My rule is simple: If my wife asked me to come home early and I was willing to leave emails in the “Today” folder, that doesn’t mean I need to blast through them once I get home–it means those emails didn’t belong in that folder to begin with. I try and limit “Today” emails to messages involving customers, my boss, and urgent projects.</p></div><div><aside class=\"pullquote pull-right\"><q>If your work is project-based, you can create this five-folder system for each project.</q></aside><p>Fourth, you can work out of multiple folders simultaneously. Try to keep the “Today” folder small, for obvious reasons. If it’s empty and you’ve got time to address longer-term emails, dive into the “This Week” folder. I typically spend my Friday mornings doing “This Week” emails. If I don’t have all the information I need, I may begin my response but save it as a draft, and hold off sending it until I’m all squared away.</p><p>Finally, if your work is project-based, you can create this five-folder system for each project. You may have two or three projects running at a time, and technically wind up with 10 to 15 total folders as a result–but the system still holds. After the project is complete, archive the entire structure.</p><p>Like every new work habit, and especially those involving personal organization, this one may feel unnatural at first. I found it needed some getting used to. Soon after I switched to this method, I was still stressed out because I felt like I was missing something. In reality, though, everything was completed, and I gradually began to see that. It turned out that I’d gotten used to feeling the burden of email and was confusing it with productivity. Armed with just five folders, those days are over.</p><p><em><a href=\"https://www.linkedin.com/in/zhanlon\">Zach Hanlon</a> is a marketing and sales expert who has worked with IBM, Oracle, and other businesses to improve their e-commerce and customer experience operations. Follow him on Twitter at <a href=\"https://twitter.com/zshanlon\">@zshanlon</a>.</em></p></div><div></div></article></div>",
"author": "Zach Hanlon",
"date_published": "2017-01-09T05:00:00.000Z",
"lead_image_url": "https://images.fastcompany.net/image/upload/w_1280,f_auto,q_auto,fl_lossy/fc/3067012-poster-p-1-the-only-five-email-folders-your-inbox-will-ever-need.jpg",
"dek": "Stop “organizing” your emails by subject and start thinking of them in terms of deadlines.",
"next_page_url": null,
"url": "https://www.fastcompany.com/3067012/the-only-five-email-folders-your-inbox-will-ever-need",
"domain": "www.fastcompany.com",
"word_count": 1,
"direction": "ltr",
"total_pages": 1,
"rendered_pages": 1
}
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@WajeehZantout This looks good! The one thing I might look into doing is transform the divs for images and captions into figures/captions. See, e.g., how the NPR parser does it:
transforms: {
'.bucketwrap.image': 'figure',
'.bucketwrap.image .credit-caption': 'figcaption',
},
…t/mercury-parser into feat-fastcompany-parser
@adampash I noticed that the image and the caption are already wrapped by figure/figcaption tags. Did you mean to remove the wrapper divs for image/caption? <figure class="inline-large inline inline column-container">
<div class="image-wrapper">
<img
width="511"
class="lazyload"
src="https://images.fastcompany.net/image/upload/w_596,c_limit,q_auto:best,f_auto/fc/3067012-inline-i-the-only-five-email-folders-your-inbox-will-ever-need.jpg"
/>
</div>
<div class="caption-wrapper">
<figcaption>
My newly streamlined, uncluttered inbox has a grand total of
five folders.
</figcaption>
</div>
</figure> |
@WajeehZantout Oh, no, I'm sorry, I think that's prob totally fine. I completely missed that when I was looking at the source. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
🤖 Automated Parsing Preview 🤖Commit: Original Article | HTML Fixture | Parsed Content Preview Parsed JSON{
"title": "The Only Five Email Folders Your Inbox Will Ever Need",
"content": "<div><article class=\"post__article \"><div><p>For years, my approach to email was like slaying a hydra. For every email I deleted, two more landed in my inbox.</p></div><div><p>Part of the problem, I knew, was the nature of my work. My team stands between two major organizations within my company, making collaboration crucial, however inefficient it was in practice. So not only did I put up with this mess, I was actually complicit in letting it worsen. I saved everything. I thought most messages addressed directly to me needed my response. I was wrong.</p><p>Looking back, I didn’t have the discipline and discernment to really manage my email habits. The system I use now isn’t a product of my own invention. My best friend works for a major consulting firm, and I was grateful when he sketched out the rough strategy his firm shares with consultants to help them manage their own unruly inboxes. The technique comes with all the beauty and simplicity you’d expect from a firm charging seven figures per engagement–and it relies on a folder system you can tally on one hand.</p><h4><a>Ditch Subjects For Deadlines</a></h4><p>The biggest mistake, in my experience, is creating folders based on topics. Emails, like meetings, rarely stay on track.</p><figure class=\"inline-large inline inline column-container\">\n<div class=\"image-wrapper\"><img alt=\"\" width=\"511\" class=\"lazyload\" src=\"https://images.fastcompany.net/image/upload/w_596,c_limit,q_auto:best,f_auto/fc/3067012-inline-i-the-only-five-email-folders-your-inbox-will-ever-need.jpg\"></div>\n<div class=\"caption-wrapper\"><figcaption>My newly streamlined, uncluttered inbox has a grand total of five folders.</figcaption></div>\n</figure><p>Where do you file an important update that covers two unrelated projects? What do you do with that same email if it requires a response?</p><p>The second mistake I’ve seen, and personally committed, is trying to use an inbox as a to-do list. There simply aren’t enough hours in the workday to respond to the emails that pile up there. Over time, precisely <em>because</em> of the way I was “organizing” my inbox, emails that I should’ve responded to got pushed further and further down, and were eventually forgotten.</p><p>The system that saved my sanity requires only five folders:</p></div><div><ol>\n<li><span><strong>Inbox:</strong> the inbox is a holding pen. Emails shouldn’t stay here any longer than it takes for you to file them into another folder. The exception to this rule is when you respond <em>immediately</em> and are waiting for an <em>immediate</em> response.</span></li>\n<li><span><strong>Today:</strong> Everything that requires a response today.</span></li>\n<li><span><strong>This Week:</strong> Everything that requires a response before the end of the week.</span></li>\n<li><span><strong>This Month/Quarter:</strong> – Everything that needs a longer-term response. Depending on your role, you many need a monthly folder. Others can operate on a quarterly basis.</span></li>\n<li><span><strong>FYI:</strong> Most items I receive are informational. If I think I may need to reference an email again, I’ll save it to this folder.</span></li>\n</ol><h4><a>Show No Mercy</a></h4><p>Email will quickly become your master if you don’t take charge. So once you embrace this system, you need to adhere to it mercilessly–there are no half measures. We tend to get more lax about newly adopted habits as their newness rubs off. But I’ve actually gotten better over time at sticking to my five-folder rule. I’m ruthless about deleting emails that don’t require my attention. Here are five tips that make the system more effective.</p><aside class=\"pullquote\"><q>Don’t confuse having an opinion with leadership, or mounting email volume with weightier job duties.</q></aside><p>First, I <a href=\"https://www.fastcompany.com/3062946/your-most-productive-self/this-100-year-old-to-do-list-hack-still-works-like-a-charm\">keep an actual to-do list</a>. Occasionally I’ll add items to that list based on the content of an email that <em>didn’t</em> require a response. For example, if an email thread results in deciding that we need to schedule a meeting, I’ll make a note to prep my boss with some information from those emails–but I’ll delete them once I’ve finished that prep session.</p><p>Second, don’t exaggerate your own importance. Too many people want to have a say in too many things. We all have leadership aspirations–and that’s generally a good thing. One way to grow your influence is indeed by taking on more responsibility. But don’t confuse having an opinion with leadership, or mounting email volume with weightier job duties. If you don’t need to respond, put it in the “FYI” folder or delete it–it’s one or the other. And if you stay on “cc,” you’ll get the latest thread when everyone responds, so there’s no need to worry.</p><p>Third, don’t exaggerate the importance of others. A lot of people <em>want</em> responses today. I’m one of them. But I’ve learned that I don’t always <em>need</em> or <em>deserve</em> a response today. This is especially true if you have obligations that directly impact customers or your company’s financial health. Don’t put emails in the “Today” folder that don’t belong there; if it’s in the “Today” folder you <em>have</em> to respond to it that day, no exceptions.</p><p>My rule is simple: If my wife asked me to come home early and I was willing to leave emails in the “Today” folder, that doesn’t mean I need to blast through them once I get home–it means those emails didn’t belong in that folder to begin with. I try and limit “Today” emails to messages involving customers, my boss, and urgent projects.</p></div><div><aside class=\"pullquote pull-right\"><q>If your work is project-based, you can create this five-folder system for each project.</q></aside><p>Fourth, you can work out of multiple folders simultaneously. Try to keep the “Today” folder small, for obvious reasons. If it’s empty and you’ve got time to address longer-term emails, dive into the “This Week” folder. I typically spend my Friday mornings doing “This Week” emails. If I don’t have all the information I need, I may begin my response but save it as a draft, and hold off sending it until I’m all squared away.</p><p>Finally, if your work is project-based, you can create this five-folder system for each project. You may have two or three projects running at a time, and technically wind up with 10 to 15 total folders as a result–but the system still holds. After the project is complete, archive the entire structure.</p><p>Like every new work habit, and especially those involving personal organization, this one may feel unnatural at first. I found it needed some getting used to. Soon after I switched to this method, I was still stressed out because I felt like I was missing something. In reality, though, everything was completed, and I gradually began to see that. It turned out that I’d gotten used to feeling the burden of email and was confusing it with productivity. Armed with just five folders, those days are over.</p><p><em><a href=\"https://www.linkedin.com/in/zhanlon\">Zach Hanlon</a> is a marketing and sales expert who has worked with IBM, Oracle, and other businesses to improve their e-commerce and customer experience operations. Follow him on Twitter at <a href=\"https://twitter.com/zshanlon\">@zshanlon</a>.</em></p></div><div></div></article></div>",
"author": "Zach Hanlon",
"date_published": "2017-01-09T05:00:00.000Z",
"lead_image_url": "https://images.fastcompany.net/image/upload/w_1280,f_auto,q_auto,fl_lossy/fc/3067012-poster-p-1-the-only-five-email-folders-your-inbox-will-ever-need.jpg",
"dek": "Stop “organizing” your emails by subject and start thinking of them in terms of deadlines.",
"next_page_url": null,
"url": "https://www.fastcompany.com/3067012/the-only-five-email-folders-your-inbox-will-ever-need",
"domain": "www.fastcompany.com",
"word_count": 1,
"direction": "ltr",
"total_pages": 1,
"rendered_pages": 1
}
✅ All tests passed |
🤖 Automated Parsing Preview 🤖Commit: Original Article | HTML Fixture | Parsed Content Preview Parsed JSON{
"title": "The Only Five Email Folders Your Inbox Will Ever Need",
"content": "<div><article class=\"post__article \"><div><p>For years, my approach to email was like slaying a hydra. For every email I deleted, two more landed in my inbox.</p></div><div><p>Part of the problem, I knew, was the nature of my work. My team stands between two major organizations within my company, making collaboration crucial, however inefficient it was in practice. So not only did I put up with this mess, I was actually complicit in letting it worsen. I saved everything. I thought most messages addressed directly to me needed my response. I was wrong.</p><p>Looking back, I didn’t have the discipline and discernment to really manage my email habits. The system I use now isn’t a product of my own invention. My best friend works for a major consulting firm, and I was grateful when he sketched out the rough strategy his firm shares with consultants to help them manage their own unruly inboxes. The technique comes with all the beauty and simplicity you’d expect from a firm charging seven figures per engagement–and it relies on a folder system you can tally on one hand.</p><h4><a>Ditch Subjects For Deadlines</a></h4><p>The biggest mistake, in my experience, is creating folders based on topics. Emails, like meetings, rarely stay on track.</p><figure class=\"inline-large inline inline column-container\">\n<div class=\"image-wrapper\"><img alt=\"\" width=\"511\" class=\"lazyload\" src=\"https://images.fastcompany.net/image/upload/w_596,c_limit,q_auto:best,f_auto/fc/3067012-inline-i-the-only-five-email-folders-your-inbox-will-ever-need.jpg\"></div>\n<div class=\"caption-wrapper\"><figcaption>My newly streamlined, uncluttered inbox has a grand total of five folders.</figcaption></div>\n</figure><p>Where do you file an important update that covers two unrelated projects? What do you do with that same email if it requires a response?</p><p>The second mistake I’ve seen, and personally committed, is trying to use an inbox as a to-do list. There simply aren’t enough hours in the workday to respond to the emails that pile up there. Over time, precisely <em>because</em> of the way I was “organizing” my inbox, emails that I should’ve responded to got pushed further and further down, and were eventually forgotten.</p><p>The system that saved my sanity requires only five folders:</p></div><div><ol>\n<li><span><strong>Inbox:</strong> the inbox is a holding pen. Emails shouldn’t stay here any longer than it takes for you to file them into another folder. The exception to this rule is when you respond <em>immediately</em> and are waiting for an <em>immediate</em> response.</span></li>\n<li><span><strong>Today:</strong> Everything that requires a response today.</span></li>\n<li><span><strong>This Week:</strong> Everything that requires a response before the end of the week.</span></li>\n<li><span><strong>This Month/Quarter:</strong> – Everything that needs a longer-term response. Depending on your role, you many need a monthly folder. Others can operate on a quarterly basis.</span></li>\n<li><span><strong>FYI:</strong> Most items I receive are informational. If I think I may need to reference an email again, I’ll save it to this folder.</span></li>\n</ol><h4><a>Show No Mercy</a></h4><p>Email will quickly become your master if you don’t take charge. So once you embrace this system, you need to adhere to it mercilessly–there are no half measures. We tend to get more lax about newly adopted habits as their newness rubs off. But I’ve actually gotten better over time at sticking to my five-folder rule. I’m ruthless about deleting emails that don’t require my attention. Here are five tips that make the system more effective.</p><aside class=\"pullquote\"><q>Don’t confuse having an opinion with leadership, or mounting email volume with weightier job duties.</q></aside><p>First, I <a href=\"https://www.fastcompany.com/3062946/your-most-productive-self/this-100-year-old-to-do-list-hack-still-works-like-a-charm\">keep an actual to-do list</a>. Occasionally I’ll add items to that list based on the content of an email that <em>didn’t</em> require a response. For example, if an email thread results in deciding that we need to schedule a meeting, I’ll make a note to prep my boss with some information from those emails–but I’ll delete them once I’ve finished that prep session.</p><p>Second, don’t exaggerate your own importance. Too many people want to have a say in too many things. We all have leadership aspirations–and that’s generally a good thing. One way to grow your influence is indeed by taking on more responsibility. But don’t confuse having an opinion with leadership, or mounting email volume with weightier job duties. If you don’t need to respond, put it in the “FYI” folder or delete it–it’s one or the other. And if you stay on “cc,” you’ll get the latest thread when everyone responds, so there’s no need to worry.</p><p>Third, don’t exaggerate the importance of others. A lot of people <em>want</em> responses today. I’m one of them. But I’ve learned that I don’t always <em>need</em> or <em>deserve</em> a response today. This is especially true if you have obligations that directly impact customers or your company’s financial health. Don’t put emails in the “Today” folder that don’t belong there; if it’s in the “Today” folder you <em>have</em> to respond to it that day, no exceptions.</p><p>My rule is simple: If my wife asked me to come home early and I was willing to leave emails in the “Today” folder, that doesn’t mean I need to blast through them once I get home–it means those emails didn’t belong in that folder to begin with. I try and limit “Today” emails to messages involving customers, my boss, and urgent projects.</p></div><div><aside class=\"pullquote pull-right\"><q>If your work is project-based, you can create this five-folder system for each project.</q></aside><p>Fourth, you can work out of multiple folders simultaneously. Try to keep the “Today” folder small, for obvious reasons. If it’s empty and you’ve got time to address longer-term emails, dive into the “This Week” folder. I typically spend my Friday mornings doing “This Week” emails. If I don’t have all the information I need, I may begin my response but save it as a draft, and hold off sending it until I’m all squared away.</p><p>Finally, if your work is project-based, you can create this five-folder system for each project. You may have two or three projects running at a time, and technically wind up with 10 to 15 total folders as a result–but the system still holds. After the project is complete, archive the entire structure.</p><p>Like every new work habit, and especially those involving personal organization, this one may feel unnatural at first. I found it needed some getting used to. Soon after I switched to this method, I was still stressed out because I felt like I was missing something. In reality, though, everything was completed, and I gradually began to see that. It turned out that I’d gotten used to feeling the burden of email and was confusing it with productivity. Armed with just five folders, those days are over.</p><p><em><a href=\"https://www.linkedin.com/in/zhanlon\">Zach Hanlon</a> is a marketing and sales expert who has worked with IBM, Oracle, and other businesses to improve their e-commerce and customer experience operations. Follow him on Twitter at <a href=\"https://twitter.com/zshanlon\">@zshanlon</a>.</em></p></div><div></div></article></div>",
"author": "Zach Hanlon",
"date_published": "2017-01-09T05:00:00.000Z",
"lead_image_url": "https://images.fastcompany.net/image/upload/w_1280,f_auto,q_auto,fl_lossy/fc/3067012-poster-p-1-the-only-five-email-folders-your-inbox-will-ever-need.jpg",
"dek": "Stop “organizing” your emails by subject and start thinking of them in terms of deadlines.",
"next_page_url": null,
"url": "https://www.fastcompany.com/3067012/the-only-five-email-folders-your-inbox-will-ever-need",
"domain": "www.fastcompany.com",
"word_count": 1,
"direction": "ltr",
"total_pages": 1,
"rendered_pages": 1
}
✅ All tests passed |
This PR adds a custom parser for fastcompany.com.