Skip to content

Commit

Permalink
build
Browse files Browse the repository at this point in the history
  • Loading branch information
rflechner committed Apr 5, 2018
1 parent 29bca07 commit b50788a
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 17 deletions.
24 changes: 12 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,18 +16,18 @@ using ScrapySharp.Extensions;

class Example
{
public void Main()
{
var divs = html.CssSelect(div); //all div elements
var nodes = html.CssSelect(div.content); //all div elements with css class ‘content’
var nodes = html.CssSelect(div.widget.monthlist); //all div elements with the both css class
var nodes = html.CssSelect(#postPaging); //all HTML elements with the id postPaging
var nodes = html.CssSelect(div#postPaging.testClass); // all HTML elements with the id postPaging and css class testClass
var nodes = html.CssSelect(div.content > p.para); //p elements who are direct children of div elements with css class ‘content’
var nodes = html.CssSelect(input[type=text].login); // textbox with css class login
}
public void Main()
{
var divs = html.CssSelect("div"); //all div elements
var nodes = html.CssSelect("div.content"); //all div elements with css class ‘content’
var nodes = html.CssSelect("div.widget.monthlist"); //all div elements with the both css class
var nodes = html.CssSelect("#postPaging"); //all HTML elements with the id postPaging
var nodes = html.CssSelect("div#postPaging.testClass"); // all HTML elements with the id postPaging and css class testClass
var nodes = html.CssSelect("div.content > p.para"); //p elements who are direct children of div elements with css class ‘content’
var nodes = html.CssSelect("input[type=text].login"); // textbox with css class login
}
}
```

Expand Down
2 changes: 1 addition & 1 deletion ScrapySharp/ScrapySharp.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<TargetsForTfmSpecificBuildOutput>$(TargetsForTfmSpecificBuildOutput);IncludeP2PAssets</TargetsForTfmSpecificBuildOutput>

<AssemblyName>ScrapySharp</AssemblyName>
<Version>3.0.0-preview1-001</Version>
<Version>3.0.0-alpha1</Version>
<Description>Scraping Framework containing :
- a web client able to simulate a web browser.
- an HtmlAgilityPack extension to select elements using css selector (like JQuery)</Description>
Expand Down
4 changes: 0 additions & 4 deletions build.cmd

This file was deleted.

9 changes: 9 additions & 0 deletions build.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
dotnet restore
dotnet test ScrapySharp.Tests\ScrapySharp.Tests.csproj
dotnet build --configuration release
dotnet pack --configuration release
Remove-Item -Recurse -Force release
mkdir release
xcopy .\ScrapySharp\bin\Release\*.nupkg release
Remove-Item .\ScrapySharp\bin\**\*.nupkg
Remove-Item .\ScrapySharp.Core\bin\**\*.nupkg

0 comments on commit b50788a

Please sign in to comment.