Junior Member
Posts: 3
Karma: 10
Join Date: Jul 2015
Device: Kindle Paperwhite
|
FYI, this is the code that I have for the Facebook React Guide eBook, which also has the same issue of improper fetching of javascript:
#!/usr/bin/env python2
# vim:fileencoding=utf-8
from __future__ import unicode_literals, division, absolute_import, print_function
from calibre.web.feeds.news import BasicNewsRecipe
class AdvancedUserRecipe1436895312(BasicNewsRecipe):
title = 'Facebook React Guide'
oldest_article = 999
max_articles_per_feed = 100
auto_cleanup = True
feeds = [
('Getting Started', 'https://facebook.github.io/react-native/docs/getting-started.html#content'),
('Tutorial', 'https://facebook.github.io/react-native/docs/tutorial.html#content'),
('Guides: Style', 'https://facebook.github.io/react-native/docs/style.html#content'),
('Guides: Gesture Responder System', 'https://facebook.github.io/react-native/docs/gesture-responder-system.html#content'),
('Guides: Animations', 'https://facebook.github.io/react-native/docs/animations.html#content'),
('Guides: Accessibility', 'https://facebook.github.io/react-native/docs/accessibility.html#content'),
('Guides: Native Modules (iOS)', 'https://facebook.github.io/react-native/docs/nativemodulesios.html#content'),
('Guides: Native UI Components (iOS)', 'https://facebook.github.io/react-native/docs/nativecomponentsios.html#content'),
('Guides: Direct Manipulation', 'https://facebook.github.io/react-native/docs/direct-manipulation.html#content'),
('Guides: Linking Libraries', 'https://facebook.github.io/react-native/docs/linking-libraries.html#content'),
('Guides: Debugging', 'https://facebook.github.io/react-native/docs/debugging.html#content'),
('Guides: Testing', 'https://facebook.github.io/react-native/docs/testing.html#content'),
('Guides: Running On Device', 'https://facebook.github.io/react-native/docs/runningondevice.html#content'),
('Guides: Integration with Existing App', 'https://facebook.github.io/react-native/docs/embedded-app.html#content'),
('Guides: JavaScript Environment', 'https://facebook.github.io/react-native/docs/javascript-environment.html#content'),
('Guides: Navigator Comparison', 'https://facebook.github.io/react-native/docs/navigator-comparison.html#content'),
('Components: ActivityIndicatorIOS', 'https://facebook.github.io/react-native/docs/activityindicatorios.html#content'),
('Components: DatePickerIOS', 'https://facebook.github.io/react-native/docs/datepickerios.html#content'),
('Components: Image', 'https://facebook.github.io/react-native/docs/image.html#content'),
('Components: ListView', 'https://facebook.github.io/react-native/docs/listview.html#content'),
('Components: MapView', 'https://facebook.github.io/react-native/docs/mapview.html#content'),
('Components: Navigator', 'https://facebook.github.io/react-native/docs/navigator.html#content'),
('Components: NavigatorIOS', 'https://facebook.github.io/react-native/docs/navigatorios.html#content'),
('Components: PickerIOS', 'https://facebook.github.io/react-native/docs/pickerios.html#content'),
('Components: ScrollView', 'https://facebook.github.io/react-native/docs/scrollview.html#content'),
('Components: SegmentedControlIOS', 'https://facebook.github.io/react-native/docs/segmentedcontrolios.html#content'),
('Components: SliderIOS', 'https://facebook.github.io/react-native/docs/sliderios.html#content'),
('Components: SwitchIOS', 'https://facebook.github.io/react-native/docs/switchios.html#content'),
('Components: TabBarIOS', 'https://facebook.github.io/react-native/docs/tabbarios.html#content'),
('Components: TabBarIOS.item', 'https://facebook.github.io/react-native/docs/tabbarios-item.html#content'),
('Components: Text', 'https://facebook.github.io/react-native/docs/text.html#content'),
('Components: TextInput', 'https://facebook.github.io/react-native/docs/textinput.html#content'),
('Components: TouchableHighlight', 'https://facebook.github.io/react-native/docs/touchablehighlight.html#content'),
('Components: TouchableOpacity', 'https://facebook.github.io/react-native/docs/touchableopacity.html#content'),
('Components: TouchableWithoutFeedback', 'https://facebook.github.io/react-native/docs/touchablewithoutfeedback.html#content'),
('Components: View', 'https://facebook.github.io/react-native/docs/view.html#content'),
('Components: WebView', 'https://facebook.github.io/react-native/docs/webview.html#content'),
('APIs: ActionSheetIOS', 'https://facebook.github.io/react-native/docs/actionsheetios.html#content'),
('APIs: AlertIOS', 'https://facebook.github.io/react-native/docs/alertios.html#content'),
('APIs: AppRegistry', 'https://facebook.github.io/react-native/docs/appregistry.html#content'),
('APIs: AppStateIOS', 'https://facebook.github.io/react-native/docs/appstateios.html#content'),
('APIs: AsyncStorage', 'https://facebook.github.io/react-native/docs/asyncstorage.html#content'),
('APIs: CameraRoll', 'https://facebook.github.io/react-native/docs/cameraroll.html#content'),
('APIs: InteractionManager', 'https://facebook.github.io/react-native/docs/interactionmanager.html#content'),
('APIs: LayoutAnimation', 'https://facebook.github.io/react-native/docs/layoutanimation.html#content'),
('APIs: LinkingIOS', 'https://facebook.github.io/react-native/docs/linkingios.html#content'),
('APIs: NetInfo', 'https://facebook.github.io/react-native/docs/netinfo.html#content'),
('APIs: PanResponder', 'https://facebook.github.io/react-native/docs/panresponder.html#content'),
('APIs: PixelRatio', 'https://facebook.github.io/react-native/docs/pixelratio.html#content'),
('APIs: PushNotificationIOS', 'https://facebook.github.io/react-native/docs/pushnotificationios.html#content'),
('APIs: StatusBarIOS', 'https://facebook.github.io/react-native/docs/statusbarios.html#content'),
('APIs: StyleSheet', 'https://facebook.github.io/react-native/docs/stylesheet.html#content'),
('APIs: VibrationIOS', 'https://facebook.github.io/react-native/docs/vibrationios.html#content'),
('Polyfills: Flexbox', 'https://facebook.github.io/react-native/docs/flexbox.html#content'),
('Polyfills: Geolocation', 'https://facebook.github.io/react-native/docs/geolocation.html#content'),
('Polyfills: Network', 'https://facebook.github.io/react-native/docs/network.html#content'),
('Polyfills: Timers', 'https://facebook.github.io/react-native/docs/timers.html#content'),
]
|