This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from web_poet import ItemPage, field, RequestUrl, HttpClient, cached_method | |
| class MyPage(web_poet.ItemPage): | |
| request_url: RequestUrl | |
| http: HttpClient | |
| @cached_method | |
| async def response(self): | |
| # create API url from the request url | |
| api_url = ... |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Error: /opt/qt-5.13/5.13.0/gcc_64/bin/qmake failed to create a makefile from | |
| PyQt5.pro. | |
| Querying qmake about your Qt installation... | |
| Determining the details of your Qt installation... | |
| /opt/qt-5.13/5.13.0/gcc_64/bin/qmake -o cfgtest_QtCore.mk cfgtest_QtCore.pro | |
| Info: creating stash file /tmp/builds/pyqt5/.qmake.stash | |
| make -f cfgtest_QtCore.mk | |
| g++ -c -pipe -O2 -Wall -W -D_REENTRANT -fPIC -DQT_NO_DEBUG -DQT_CORE_LIB -I. -I/opt/qt-5.13/5.13.0/gcc_64/include -I/opt/qt-5.13/5.13.0/gcc_64/include/QtCore -I. -I/opt/qt-5.13/5.13.0/gcc_64/mkspecs/linux-g++ -o cfgtest_QtCore.o config-tests/cfgtest_QtCore.cpp | |
| g++ -Wl,-O1 -Wl,-rpath,/opt/qt-5.13/5.13.0/gcc_64/lib -o cfgtest_QtCore cfgtest_QtCore.o /opt/qt-5.13/5.13.0/gcc_64/lib/libQt5Core.so -lpthread | |
| ./cfgtest_QtCore cfgtest_QtCore.out |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import scrapy | |
| from scrapy_splash import LuaRequest | |
| class BooksSpider(scrapy.Spider): | |
| name = 'books' | |
| allowed_domains = ['books.toscrape.com'] | |
| def start_requests(self): | |
| yield LuaRequest( |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| CURRENCIES = { | |
| 'AED': { | |
| "s": 'AED', | |
| "n": 'United Arab Emirates Dirham', | |
| "sn": 'د.إ.', | |
| "d": 2, | |
| "r": 0, | |
| "np": 'UAE dirhams' | |
| }, | |
| 'AFN': { |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
NewerOlder