Problem During Load because of wrong ss:ExpandedRowCount
.
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
[package] | |
name = "wry_render_html_to_stdout" | |
authors = [ "Illia <ilya@serpapi.com>" ] | |
version = "0.1.0" | |
edition = "2021" | |
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html | |
[dependencies] | |
wry = "0.22.5" |
This gist is based on @ibrahima's version that doesn't support Next.js.
import Markdown from '@/components/markdown'
function PostBody({ content }) {
Using @tryghost/admin-api
.
Set up
- Replace
http://localhost:2368
with your blog URL - Obtain API key by creating a new integration at http://localhost:2368/ghost/#/settings/integrations
Usage
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 bs4 import BeautifulSoup | |
import requests, urllib.parse | |
def paginate(url, previous_url=None): | |
# Break from infinite recursion | |
if url == previous_url: return | |
headers = { | |
"User-Agent": |
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
# https://pypi.org/project/google-search-results | |
from serpapi import GoogleSearch | |
import os | |
params = { | |
"engine": "google", | |
"q": "Coffee", | |
"tbm": "shop", | |
"api_key": os.getenv("API_KEY") | |
} |
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
[tool.poetry.dependencies] | |
python = "^3.8" | |
google-search-results = "^2.0.0" | |
[build-system] | |
requires = ["poetry>=0.12"] | |
build-backend = "poetry.masonry.api" |
NewerOlder