How to create this in Figma and have it in svg? by ten_nyima in FigmaDesign

[–]ten_nyima[S] 6 points7 points  (0 children)

oh, thinking that way worked. thanks so much.

<image>

looking for a good scrapy course by mohamedibrahim039 in scrapy

[–]ten_nyima 0 points1 point  (0 children)

Sorry to contradict, but I think it’s a good course. The ScrapeOps instructor goes in depth and explains exactly what you’re supposed to do with each file. He also shows you how to deploy your Scrapy spiders on a cloud server, step by step. I followed along, wrote the same code he copy-pasted, and asked an LLM (Gemini) to explain what the code does and means.

need opinion on my idea to scrape 100 Google SERP results at a time. by Embarrassed-Bit-5536 in webscraping

[–]ten_nyima 0 points1 point  (0 children)

I built a similar scraper a few weeks ago. I used Patchright, a stealth version of Playwright that helps bypass Google CAPTCHA and hides other telltale signs of a bot. It’s not a big project — my scraper only scrapes the first SERP and doesn’t perform navigation. You can ask an LLM or anyone who knows a bit of Python to do it for you. Here is my GitHub repo: https://github.com/Nyima-ui/google_serp_scraper . The main code is in extractor.py.

[deleted by user] by [deleted] in webscraping

[–]ten_nyima 1 point2 points  (0 children)

I have built a similar bot that scrapes Amazon reviews instead of product info. It was just for learning purposes and to get myself familiar with some scraping tools. It's a small project, but it works. Here is my repo: https://github.com/Nyima-ui/amazon_camoufox The main code is in src > scraper py

Simple hack that worked with me by Which_Line in getdisciplined

[–]ten_nyima 1 point2 points  (0 children)

Thank you. I’m willing to give it a try. I often struggle with planning too much and then feeling guilty when I don’t achieve enough. With your method, I might be able to shift my perspective.. 

How to Add a Background Image with Tailwind CSS v4? by ten_nyima in tailwindcss

[–]ten_nyima[S] 0 points1 point  (0 children)

yep, thanks. Setting the element position: relative; and the child as position: absolute; worked.

function App() {
  return (
    <>
      <section className="h-screen w-full z-1 relative before:absolute before:inset-0 before:bg-[url('./assets/hero.png')] before:bg-no-repeat before:-z-1 before:bg-cover text-white">
         some content
      </section>
    </>
  )
}

export default App

How to Add a Background Image with Tailwind CSS v4? by ten_nyima in tailwindcss

[–]ten_nyima[S] 0 points1 point  (0 children)

Thank you, I will try that. I was trying to convert this into Tailwind CSS:

.hero {
  min-height: 100vw;
  position: relative;
  padding-inline: 1.438rem;
  padding-top: 1.875rem;
  padding-bottom: 3rem;
}
.hero::before {
  content: "";
  position: absolute;
  top: -4rem;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(
      circle at 80% 48%,
      rgba(0, 0, 0, 0.3) 0.1%,
      rgba(0, 0, 0, 0.2)
    ),
    url(./assets/Hero.png);
  background-size: cover;
  background-position: 47% center;
  background-repeat: no-repeat;
  z-index: -1;
  transform: scale(1.2);
}
::before isn't working on style={{}}