How to export the list of apps from Google Play (Store)

It's quite simple. When you visit the "My Android Apps" page in the Play Store, one of the loaded URLs (https://play.google.com/xhr/myappslibrary?device=somealphanumericstring) contains the HTML code of the "Apps installed on ..." and "Other apps in my library" sections. It's a JSON formatted record and has an "installedAppsHtml" and a "notInstalledAppsHtml" element with the respective HTML codes.

In the installed apps section an app's HTML code looks like this:
<div class="goog-inline-block carousel-cell" id="com.google.android.apps.currents" data-docid="com.google.android.apps.currents">
        <div class="snippet snippet-medium snippet-app-lib">
                <div class="thumbnail-wrapper-container goog-inline-block">
                        <div class="thumbnail-wrapper goog-inline-block">
                                <a href="/store/apps/details?id=com.google.android.apps.currents" class="thumbnail" data-a="2" data-c="1">
                                        <img src="https://lh3.ggpht.com/HNFMQvUB5dM208mI3b_xSMK9FMp4FP-HzrtGI4acXZGJ87wTUK3kow7yS4PzefZott0=w78" alt="Google Currents" />
                                </a>
                        </div>
                </div>
                <div class="details goog-inline-block">
                        <div class="title-wrapper">
                                <a class="title" title="Google Currents" data-a="1" data-c="1" href="/store/apps/details?id=com.google.android.apps.currents">Google Currents</a>
                        </div><span class="attribution"><div class="goog-inline-block dev-has-badge-attribution"><a class="goog-inline-block" href="/store/apps/developer?id=Google+Inc.">Google Inc.</a></div></span>
                        <div class="buttons-wrapper">
                                <div class="buy-wrapper update-wrapper goog-inline-block">
                                        <div class="buy-border">
                                                <a class="update-link buy-button goog-inline-block" href="javascript:void(0)" data-docAttribution="Google Inc." data-docConsumptionUri="" data-docId="com.google.android.apps.currents" data-docTitle="Google Currents" data-docIconUrl="https://lh3.ggpht.com/HNFMQvUB5dM208mI3b_xSMK9FMp4FP-HzrtGI4acXZGJ87wTUK3kow7yS4PzefZott0=w65"
                                                data-docType="1" data-parentDocId="" data-docSubIsTrial="false"><span class="buy-button-price">Update</span>
                                                </a>
                                        </div>
                                </div>
                                <div class="goog-inline-block disabled-wrapper installed-wrapper" style="display:none;">
                                        <div class="buy-wrapper goog-inline-block">
                                                <div class="buy-border">
                                                        <div class="buy-button goog-inline-block"><span class="buy-button-price">Installed</span>
                                                        </div>
                                                </div>
                                        </div>
                                </div>
                                <div class="goog-inline-block disabled-wrapper just-removed-wrapper">
                                        <div class="buy-wrapper goog-inline-block">
                                                <div class="buy-border">
                                                        <div class="buy-button goog-inline-block"><span class="buy-button-price">Removed</span>
                                                        </div>
                                                </div>
                                        </div>
                                </div>
                        </div>
                </div>
        </div>
</div>

From the title line you can get both the package name and the app label:
<a class="title" title="Google Currents" data-a="1" data-c="1" href="/store/apps/details?id=com.google.android.apps.currents">Google Currents</a>