Skip to content

Commit

Permalink
Update API endpoint URL in scrapeSerpApiImages function
Browse files Browse the repository at this point in the history
  • Loading branch information
tf7software committed Sep 28, 2024
1 parent 63b52c5 commit cda1596
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app.js
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ const scrapeSerpApiImages = async (query) => {
}

const apiKey = process.env.SERPAPI_API_KEY;
const url = `https://serpapi.com/search.json?engine=google_images&q=${query}&api_key=${apiKey}`;
const url = `https://scrapi.pythonanywhere.com/search?q=${query}&n=10`;

try {
const { data } = await axios.get(url);
Expand Down

0 comments on commit cda1596

Please sign in to comment.