- Переключитесь на панель Debug (слева кнопка с треугольником и жуком).
- Под синей кнопкой выберите "create a launch.json file". Сверху выскочит панель, где нужно выбрать Python, затем Django, затем дописать путь до manage.py. В большинстве случаев это
${workspaceFolder}\backend\manage.py
(первая часть - это корень всего проекта), но если у вас он лежит глубже, путь нужно поправить (здесь и далее). - Создастся файл launch.json с конфигурацией, которую можно поправить под себя. Например, мне нужно было указать другой порт для runserver (ключ
"args"
) и переключить некоторые переменные окружения для запуска с другой БД (ключ"env"
). Ещё стоит обратить внимание на ключ"justMyCode"
: если указать для негоfalse
, то дебаггером можно будет ходить по коду джанги и прочих либ. - Теперь в той же панели зеленый треугольник будет запускать выбранную конфигурацию. Можно ставить брейкпоинты и слать запросы на
This file contains 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 typing import Dict, Iterable, Union | |
import requests | |
from bs4 import BeautifulSoup | |
from bs4.element import Tag | |
MovieData = Dict[str, Union[str, Dict[str, str]]] | |
def fetch_pages(url: str, page_start: int, page_end: int) -> Iterable[Tag]: |
jlfitz (190)
- youtube:hQ_Kkq6GL3Q on /movies/the+gaucho/
- youtube:5LZTyXmYzWI on /movies/geschlecht+in+fesseln/
- youtube:0PVyse12JRo on /movies/the+lighthorsemen/
- youtube:TrT410-aJvM on /movies/dom+v+kotorom+ya+zhivu/
- youtube:QldnTvFy8tg on /movies/sanda+wong/
- youtube:-ULcpRi3wqw on [/movies/dogs+in+space/](https://www.icheckmovies.com
This file contains 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
/* ==UserStyle== | |
@name IMDb - Compact list editing | |
@description Make each IMDb list item take half as much vertical space while editing lists | |
@namespace monk-time | |
@author monk-time (https://github.com/monk-time) | |
@license MIT; https://opensource.org/licenses/MIT | |
@homepageURL https://gist.github.com/monk-time/118cd8f9d34e620df1f56a8a520787f3 | |
@updateURL https://gist.githubusercontent.com/monk-time/118cd8f9d34e620df1f56a8a520787f3/raw/imdb-compact-list-editing.user.css | |
@version 1.0.3 | |
==/UserStyle== */ |
This file contains 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
Title | Year | Rank by year | Rank | Res | Hash | After | Before | Range | |
---|---|---|---|---|---|---|---|---|---|
Workers Leave the Factory | 1895 | 2 | - | - | 3g | - | - | (1002, 1999) | |
Great Train Robbery, The | 1903 | 1 | - | - | mk | - | - | (1002, 1999) | |
Corner in Wheat, A | 1909 | 1 | 1657 | - | yi | - | - | - | |
Fantomas | 1913 | 1 | - | - | 5b | - | - | (1002, 1999) | |
Battle of the Somme, The | 1916 | 2 | - | - | np | - | - | (1002, 1999) | |
Man There Was, A | 1917 | 1 | 1525 | - | bk | - | - | - | |
Tih Minh | 1918 | 1 | - | - | ik | - | - | (1002, 1999) | |
Sir Arne's Treasure | 1919 | 4 | - | - | 8a | - | - | (1002, 1999) | |
Way Down East | 1920 | 1 | 1120 | - | ql | - | - | - |